
#include <gzDistSession.h>
Public Member Functions | |
| gzDistSessionObjectIterator (const gzDistSessionPtr &session, gzType *objectType) | |
| Constructor. | |
| gzDistSessionObjectIterator (const gzDistSessionPtr &session) | |
| Constructor. | |
| ~gzDistSessionObjectIterator () | |
| Destructor. | |
| gzDistObject * | operator() () |
| Iterating operator. | |
| gzDistObject * | current () |
| Returns the object at current position. | |
| gzVoid | reset () |
| Resets the iterator. | |
| gzVoid | unLockSession () |
| Unlock session. | |
Definition at line 385 of file gzDistSession.h.
|
||||||||||||
|
Constructor. Warning: The constructor can block the distribution kernel. It's therefor important that the iterator is destroyed or is run to the end as soon as possible. The kernel can manually be unlocken by the unLockSession() call. |
|
|
Constructor. Same as gzDistSessionObjectIterator(const gzDistSessionPtr&, gzType*) but the object type is default the class type of gzDistObject. This is the same as all objects in session. |
|
|
Destructor. Unlocks kernel. |
|
|
Iterating operator. The operator() iterates one step through session and returns a pointer to a gzDistObject at current session iterator position. At end of session it returns NULL. |
|
|
Unlock session. If you want to operate in a session, e.g. remove an object inside an iterator loop, and you want to wait until the operation is completed, the session must be unlocked. Otherwise the distribution kernel cannot process the operation. If you want to use the iterator again, you have to call reset() before the iterator is able to use. current() will return NULL after the session is unlocked. |