#include <NIS_ObjectsIterator.hxx>
Iterator of objects contained in a NIS_InteractiveContext instance. The iteration is always in the ascending sense of object ID. Examples:
*
* for (; anIter.More(); anIter.Next())
*
*
* anIter.Initialize (myContext);
* while (!(anObj = anIter.
Value().IsNull())) {
* anIter.Next();
* }
*
| NIS_ObjectsIterator::NIS_ObjectsIterator |
( |
| ) |
|
|
inline |
| NIS_ObjectsIterator::NIS_ObjectsIterator |
( |
const Handle_NIS_InteractiveContext & |
theCtx | ) |
|
|
inline |
Constructor.
- Parameters
-
| theCtx | Interactive context that is to be iterated for all objects. |
| void NIS_ObjectsIterator::Initialize |
( |
const Handle_NIS_InteractiveContext & |
theCtx | ) |
|
Reset the Iterator to start the iterations of objects.
- Parameters
-
| theCtx | Interactive context that is to be iterated for all objects. |
Query if the Iterator has an object (not yet finished the iteration process).
| void NIS_ObjectsIterator::Next |
( |
| ) |
|
Step forward to the next valid InteractiveObject instance.
| const Handle_NIS_InteractiveObject& NIS_ObjectsIterator::Value |
( |
| ) |
const |
Returns the current object at the iteration pointer. If the iteration is over (More() == False) this method returns NULL Handle.
The documentation for this class was generated from the following file: