![]() |
Public API Reference |
#include <mapnode.h>
Public Methods | |
csNodeIterator (iSector *pSector, const char *classname=NULL) | |
The constructor. More... | |
~csNodeIterator () | |
The destructor as usual. More... | |
void | Reset (iSector *pSector, const char *classname=NULL) |
Reuse the iterator for an other search. More... | |
iMapNode * | GetNode () |
Get the object we are pointing at. More... | |
void | Next () |
Move forward. More... | |
bool | IsFinished () const |
Check if there are other nodes. More... | |
Protected Methods | |
void | SkipWrongClassname () |
Skip all nodes with wrong classname. More... | |
void | NextNode () |
Step to the next node in the sector, ignoring its classname. More... |
Definition at line 79 of file cstool/mapnode.h.
|
The constructor. Theorectially, we could handle any iObject, but that doesn't make sense for the current implementation, so we restrict it to iSector to avoid some pitfalls.
If a classname is given, search is restricted to nodes, in which the key "classname" has the same value as the given classname. the classname string is _not_ duplicated, so the caller is responsible to take care, that the string is available while the Iterator is alive. |
|
The destructor as usual.
|
|
Get the object we are pointing at.
|
|
Check if there are other nodes.
|
|
Move forward.
|
|
Step to the next node in the sector, ignoring its classname.
|
|
Reuse the iterator for an other search.
|
|
Skip all nodes with wrong classname.
|