VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DtBaseSimObjectIterator< T > Class Template Reference

File: keyedObjIter.h. More...

Inheritance diagram for DtBaseSimObjectIterator< T >:
Inheritance graph
[legend]

Public Member Functions

 DtBaseSimObjectIterator (const DtList &list, const DtSimManager *simObjectManager)
 Constructor. More...
 
 DtBaseSimObjectIterator (const DtBaseSimObjectIterator &orig)
 Copy Contructor. More...
 
virtual ~DtBaseSimObjectIterator ()
 Destructor. More...
 
T * first (bool move=true)
 
T * next (bool move=true)
 
T * prev (bool move=true)
 
T * last (bool move=true)
 
T * wrapNext (bool move=true)
 
T * wrapPrev (bool move=true)
 
- Public Member Functions inherited from DtIteratorBase< T >
 DtIteratorBase (const DtList &list)
 Constructor. Supply the DtList to be iterated over. More...
 
 DtIteratorBase (const DtIteratorBase &orig)
 Copy constructor. More...
 
virtual ~DtIteratorBase ()
 
virtual unsigned int size () const
 
virtual bool empty () const
 
virtual const DtList & list ()
 
virtual bool reset (bool reverse=false)
 Sets the cursor and the direction of this iterator over the list. More...
 
virtual bool reset (DtIteratorLocation location, DtIteratorDirection direction=DtIteratorForward)
 Sets the cursor and the direction of this iterator over the list. More...
 
virtual void reverse ()
 Reverses the direction if this iterator. The cursor is not moved. More...
 
virtual void setDirection (DtIteratorDirection direction)
 Sets the direction of this iterator. The cursor is not moved. More...
 
virtual DtIteratorDirection direction ()
 Returns the current direction of the iterator. More...
 
virtual int cursorIndex () const
 Returns current cursor index in list. More...
 
virtual void setCursorIndex (int i)
 
virtual T * internalFirst (bool move=true)
 Returns the first vertex in the list if going DtIteratorForward, and the last vertex if going DtIteratorReverse. More...
 
T * operator-> ()
 
T * operator* ()
 
virtual T * internalCurrent () const
 Returns the current vertex. The cursor is not moved. More...
 
virtual DtListItem * cursor () const
 Returns the current cursor. Use with caution. More...
 
virtual T * itemToObject (DtListItem *item, bool move)
 
virtual T * internalNext (bool move=true)
 
virtual T * internalLast (bool move=true)
 Returns the last vertex in the list if going DtIteratorForward, and the first vertex if going DtIteratorReverse. More...
 
virtual T * internalWrapNext (bool move=true)
 If the cursor is 0, returns 0 (move is ignored in this case). More...
 
virtual T * internalPrev (bool move=true)
 If the cursor is 0, returns 0 (move is ignored in this case). More...
 
virtual T * internalWrapPrev (bool move=true)
 
virtual T * current ()
 
T * operator++ ()
 
T * operator-- ()
 

Protected Member Functions

T * dataToObject (const void *data) const
 

Protected Attributes

const DtSimManagermySimObjectManager
 
- Protected Attributes inherited from DtIteratorBase< T >
const DtList & myList
 
DtListItem * myCursor
 
DtIteratorDirection myDirection
 

Private Member Functions

 DtBaseSimObjectIterator ()
 
const DtBaseSimObjectIteratoroperator= (const DtBaseSimObjectIterator &orig)
 

Detailed Description

template<class T>
class DtBaseSimObjectIterator< T >

File: keyedObjIter.h.

Class: DtKeyedVrfObjectIterator

Description:

Constructor & Destructor Documentation

template<class T >
DtBaseSimObjectIterator< T >::DtBaseSimObjectIterator ( )
private
template<class T >
DtBaseSimObjectIterator< T >::DtBaseSimObjectIterator ( const DtList &  list,
const DtSimManager simObjectManager 
)
inline

Constructor.

Supply the DtList to be iterated over. Also, since this is actually iterating over a set of keys, it needs a pointer to the DtVrfObjectManager to look up the actual DtSimObjects to return

template<class T >
DtBaseSimObjectIterator< T >::DtBaseSimObjectIterator ( const DtBaseSimObjectIterator< T > &  orig)
inline

Copy Contructor.

template<class T >
virtual DtBaseSimObjectIterator< T >::~DtBaseSimObjectIterator ( )
inlinevirtual

Destructor.

Member Function Documentation

template<class T >
const DtBaseSimObjectIterator& DtBaseSimObjectIterator< T >::operator= ( const DtBaseSimObjectIterator< T > &  orig)
private
template<class T >
T* DtBaseSimObjectIterator< T >::first ( bool  move = true)
inlinevirtual
template<class T >
T* DtBaseSimObjectIterator< T >::next ( bool  move = true)
inlinevirtual
template<class T >
T* DtBaseSimObjectIterator< T >::prev ( bool  move = true)
inlinevirtual
template<class T >
T* DtBaseSimObjectIterator< T >::last ( bool  move = true)
inlinevirtual
template<class T >
T* DtBaseSimObjectIterator< T >::wrapNext ( bool  move = true)
inlinevirtual
template<class T >
T* DtBaseSimObjectIterator< T >::wrapPrev ( bool  move = true)
inlinevirtual
template<class T >
T* DtBaseSimObjectIterator< T >::dataToObject ( const void *  data) const
inlineprotected

Member Data Documentation

template<class T >
const DtSimManager* DtBaseSimObjectIterator< T >::mySimObjectManager
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)