18 #ifndef DtRecursiveStateRepositoryIterator_H_
19 #define DtRecursiveStateRepositoryIterator_H_
82 delete myChildIterator;
107 currRep = myChildIterator->next();
116 delete myChildIterator;
117 myChildIterator = NULL;
136 return myChildIterator->
first();
151 myCursor = myCursor->next();
165 delete myChildIterator;
166 myChildIterator = NULL;
virtual DtAttachmentManager * attachments()
virtual bool reset(bool reverse=false)
Sets the cursor and the direction of this iterator over the list.
Definition: iteratorBase.h:65
DtRecursiveStateRepositoryIterator(const DtList &list)
Constructor.
Definition: recursiveStateRepositoryIterator.h:50
const DtIteratorBase & operator=(const DtIteratorBase &orig)
Assignment Operator.
virtual T * current()
Definition: iteratorBase.h:330
DtSimObjectStateRepository * current() const
returns the current object. List index is unmodified.
Definition: recursiveStateRepositoryIterator.h:69
DtSimObjectStateRepository * first(bool reset=true)
Calls reset() if reset arg is true (useful for for() loops).
Definition: recursiveStateRepositoryIterator.h:58
void reset()
sets the current pointer to the start of the list.
Definition: recursiveStateRepositoryIterator.h:159
virtual int numAttachments() const
Returns the number of SRs attached.
The DtSimObjectStateRepository is an abstract base class (ABC) for all state repositories.
Definition: simObjectStateRepository.h:46
File: recSRIter.h.
Definition: recursiveStateRepositoryIterator.h:33
virtual ~DtRecursiveStateRepositoryIterator()
Destructor.
Definition: recursiveStateRepositoryIterator.h:54
Description: DtIteratorBase is the base class for iterators used to iterate over a DtList...
Definition: iteratorBase.h:32
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual T * first(bool move=true)
Definition: iteratorBase.h:331
DtRecursiveStateRepositoryIterator * myChildIterator
Definition: recursiveStateRepositoryIterator.h:171
DtSimObjectStateRepository * next()
moves the index to the next position and returns the object at that position in the list...
Definition: recursiveStateRepositoryIterator.h:100
const DtList & elements() const
Definition: attachmentManager.h:81