CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_list.h>
Public Member Functions | |
TIter (CListBase &aList, TListLink *aLink) | |
operator T* () | |
void | Next () |
void | Prev () |
TLink * | Cur () |
void | MoveCurrentToStart () |
TResult | Insert (const T &aT) |
void | MoveToCurrentPosition (TListLink *aLink) |
bool | AtStart () const |
A non-constant iterator for traversing lists. The iterator's 'operator TYPE*' function returns a pointer to the iterator's current element, or null if the list is empty or the iterator has reached the end or start of the list.
|
inline |
Creates an iterator referring to the link aLink. If aLink is null, the iterator is a null iterator and cannot be incremented or decremented.
|
inline |
Returns true if this iterator is at the start of the list.
|
inline |
Returns a pointer to the current link.
|
inline |
Inserts the item aT before the current item.
|
inline |
Moves the current item to the start of the list.
|
inline |
Moves the link aLink to the current position.
|
inline |
Moves to the next item. The iterator becomes a null iterator if there are no more items.
|
inline |
Returns a pointer to the current item, or null if this is a null iterator.
|
inline |
Moves to the previous item. The iterator becomes a null iterator if there are no more items.