#include <NIS_ObjectsIterator.hxx>
Public Member Functions | |
NIS_ObjectsIterator () | |
NIS_ObjectsIterator (const Handle_NIS_InteractiveContext &theCtx) | |
Standard_EXPORT void | Initialize (const Handle_NIS_InteractiveContext &theCtx) |
Standard_Boolean | More () const |
Handle (NIS_InteractiveObject) Value() const | |
Standard_EXPORT void | Next () |
Protected Attributes | |
NCollection_Vector< Handle_NIS_InteractiveObject >::Iterator | myIter |
// Erase all objects in the Context NIS_ObjectsIterator anIter (myContext); for (; anIter.More(); anIter.Next()) myContext->Erase (anIter.Value(), Standard_False); // Set object attributes to their IDs (hardly useful outside the example) anIter.Initialize (myContext); Handle(NIS_InteractiveObject) anObj; while (!(anObj = anIter.Value().IsNull())) { anObj->SetAttribute (static_cast<void *> (anObj->ID())); anIter.Next(); }
|
Empty Constructor. |
|
Constructor.
|
|
Returns the current object at the iteration pointer. If the iteration is over (More() == False) this method returns NULL Handle. |
|
Reset the Iterator to start the iterations of objects.
|
|
Query if the Iterator has an object (not yet finished the iteration process). |
|
Step forward to the next valid InteractiveObject instance. |
|
|