Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

OpenCAL::ObjectIterator Class Reference

#include <ObjectIterator.h>

Collaboration diagram for OpenCAL::ObjectIterator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ObjectIterator (System *system)
ObjectIterator & operator++ ()
const ObjectIterator operator++ (int)
Object * operator * ()
Object * current ()
void reset ()

Protected Types

typedef vector< unsigned int > SystemStack

Protected Member Functions

Object * gotoFirstObject (System *system)

Protected Attributes

System * m_system
Object * m_currentObject
System * m_currentSystem
SystemStack m_systemStack
unsigned int m_objectIndex

Detailed Description

You can use this class to easily iterate through the objects of a system, together with all the objects of the subsystems.

Definition at line 31 of file ObjectIterator.h.


Constructor & Destructor Documentation

ObjectIterator::ObjectIterator (  System *  system  ) 
 

Definition at line 24 of file ObjectIterator.cpp.


Member Function Documentation

ObjectIterator & ObjectIterator::operator++ (   ) 
 

This is the postfix ++ operator. It makes the next item the current item, and returns that. It returns 0 if the current item was the last item, or if the System has no objects. Definition at line 51 of file ObjectIterator.cpp.

References OpenCAL::System::getObject(), OpenCAL::System::getParent(), OpenCAL::System::getSystem(), OpenCAL::System::numObjects(), and OpenCAL::System::numSystems().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun Aug 15 19:19:29 2004 for OpenCAL: Open Computer Animation Library by doxygen 1.3.8