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 | |
TConstIter (const CListBase &aList, const TListLink *aLink) | |
operator const T * () const | |
void | Next () |
void | Prev () |
bool | AtStart () const |
A constant iterator for traversing lists of pointers. The iterator's 'operator const TYPE*' function returns a const 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 a constant 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 |
Moves to the next item. The iterator becomes a null iterator if there are no more items.
|
inline |
Returns a const 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.