VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes | Private Member Functions
DtRecursiveStateRepositoryIterator Class Reference

File: recSRIter.h. More...

Inheritance diagram for DtRecursiveStateRepositoryIterator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtRecursiveStateRepositoryIterator (const DtList &list)
 Constructor.
virtual ~DtRecursiveStateRepositoryIterator ()
 Destructor.
DtSimObjectStateRepositoryfirst (bool reset=true)
 Calls reset() if reset arg is true (useful for for() loops).
DtSimObjectStateRepositorycurrent () const
 returns the current object. List index is unmodified.
DtSimObjectStateRepositorynext ()
 moves the index to the next position and returns the object at that position in the list.
void reset ()
 sets the current pointer to the start of the list.

Protected Attributes

DtRecursiveStateRepositoryIteratormyChildIterator

Private Member Functions

 DtRecursiveStateRepositoryIterator ()
 Default Constructor. Do not use.
 DtRecursiveStateRepositoryIterator (const DtRecursiveStateRepositoryIterator &orig)
 Copy Constructor.
const
DtRecursiveStateRepositoryIterator
operator= (const DtRecursiveStateRepositoryIterator &orig)
 Assignment Operator.

Detailed Description

File: recSRIter.h.

Class: DtRecursiveStateRepositoryIterator Iterator for iterating over a DtList of state repositories and all its descendants (as represented by each repository's attachment manager). This iterator performs an pre-order iteration over the 'forest' that represents the SR's descendants. Spawned by DtAttachmentManager.


Constructor & Destructor Documentation

Default Constructor. Do not use.

Copy Constructor.

Constructor.

Destructor.


Member Function Documentation

const DtRecursiveStateRepositoryIterator& DtRecursiveStateRepositoryIterator::operator= ( const DtRecursiveStateRepositoryIterator orig) [private]

Assignment Operator.

Calls reset() if reset arg is true (useful for for() loops).

Returns the first object on the list

Reimplemented from DtIteratorBase< DtSimObjectStateRepository >.

Referenced by next().

returns the current object. List index is unmodified.

References myChildIterator.

moves the index to the next position and returns the object at that position in the list.

Returns null if already at the end of list.

References DtSimObjectStateRepository::attachments(), DtIteratorBase< T >::current(), DtAttachmentManager::elements(), first(), and DtAttachmentManager::numAttachments().

sets the current pointer to the start of the list.

Normally this isn't needed if you use the standard for loop syntax.


Member Data Documentation

Referenced by current().


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)