IRISLIB database
AbstractIterator Class Reference

Definition of iterator methods that all our collections classes use to ensure consistency. More...

Inheritance diagram for AbstractIterator:

Public Member Functions

_.Library.RawString GetAt (_.Library.RawString key)
 Definition of iterator methods that all our collections classes use to ensure consistency. More...
 
_.Library.RawString GetNext (_.Library.RawString key)
 Finds and returns the value of the element at the location after key More...
 
_.Library.RawString Next (_.Library.RawString key)
 Finds and returns the key value of the element at the location following key in the iteration. More...
 

Detailed Description

Definition of iterator methods that all our collections classes use to ensure consistency.

Member Function Documentation

◆ GetAt()

Definition of iterator methods that all our collections classes use to ensure consistency.

Finds and returns the value of the element associated with key.

GetAt returns the value of the element associated with key or null string ("") if no element is found.

◆ GetNext()

Finds and returns the value of the element at the location after key

in the iteration. If key is a null string (""), it returns the value of the first element in the array.

The value of key, which is passed by reference, is updated to the key value of the returned element or null string ("") if key is at the end of the array.

Reimplemented in ValueList, Entry, and Entries.

◆ Next()

Finds and returns the key value of the element at the location following key in the iteration.

If key is a null string (""), then Next returns the key value for the first element in the array.

Reimplemented in ValueList, Entry, and Entries.