csNodeIterator Class Reference
A node iterator. More...
#include <cstool/mapnode.h>
Public Member Functions | |
csNodeIterator (iSector *pSector, const char *classname=0) | |
The constructor. | |
bool | HasNext () const |
Check if there are other nodes. | |
iMapNode * | Next () |
Move forward. | |
void | Reset (iSector *pSector, const char *classname=0) |
Reuse the iterator for an other search. | |
~csNodeIterator () | |
The destructor as usual. | |
Protected Member Functions | |
void | NextNode () |
Step to the next node in the sector, ignoring its classname. | |
void | SkipWrongClassname () |
Skip all nodes with wrong classname. | |
Protected Attributes | |
const char * | Classname |
csRef< iMapNode > | CurrentNode |
csRef< iObjectIterator > | Iterator |
Detailed Description
A node iterator.
Definition at line 71 of file mapnode.h.
Constructor & Destructor Documentation
|
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.
|
Member Function Documentation
|
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.
|
The documentation for this class was generated from the following file:
- cstool/mapnode.h
Generated for Crystal Space by doxygen 1.4.4