VR-Forces 4.6.1 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, DtSimManager *simObjectManager)
 Constructor.
 DtBaseSimObjectIterator (const DtBaseSimObjectIterator &orig)
 Copy Contructor.
virtual ~DtBaseSimObjectIterator ()
 Destructor.
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.
 DtIteratorBase (const DtIteratorBase &orig)
 Copy constructor.
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.
virtual bool reset (DtIteratorLocation location, DtIteratorDirection direction=DtIteratorForward)
 Sets the cursor and the direction of this iterator over the list.
virtual void reverse ()
 Reverses the direction if this iterator. The cursor is not moved.
virtual void setDirection (DtIteratorDirection direction)
 Sets the direction of this iterator. The cursor is not moved.
virtual DtIteratorDirection direction ()
 Returns the current direction of the iterator.
virtual int cursorIndex () const
 Returns current cursor index in list.
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.
T * operator-> ()
T * operator* ()
virtual T * internalCurrent () const
 Returns the current vertex. The cursor is not moved.
virtual DtListItem * cursor () const
 Returns the current cursor. Use with caution.
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.
virtual T * internalWrapNext (bool move=true)
 If the cursor is 0, returns 0 (move is ignored in this case).
virtual T * internalPrev (bool move=true)
 If the cursor is 0, returns 0 (move is ignored in this case).
virtual T * internalWrapPrev (bool move=true)
virtual T * current ()
T * operator++ ()
T * operator-- ()

Protected Member Functions

T * dataToObject (void *data) const

Protected Attributes

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,
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

Reimplemented from DtIteratorBase< T >.

template<class T>
T* DtBaseSimObjectIterator< T >::next ( bool  move = true)
inlinevirtual

Reimplemented from DtIteratorBase< T >.

template<class T>
T* DtBaseSimObjectIterator< T >::prev ( bool  move = true)
inlinevirtual

Reimplemented from DtIteratorBase< T >.

template<class T>
T* DtBaseSimObjectIterator< T >::last ( bool  move = true)
inlinevirtual

Reimplemented from DtIteratorBase< T >.

template<class T>
T* DtBaseSimObjectIterator< T >::wrapNext ( bool  move = true)
inlinevirtual

Reimplemented from DtIteratorBase< T >.

template<class T>
T* DtBaseSimObjectIterator< T >::wrapPrev ( bool  move = true)
inlinevirtual

Reimplemented from DtIteratorBase< T >.

template<class T>
T* DtBaseSimObjectIterator< T >::dataToObject ( void *  data) const
inlineprotected

Member Data Documentation

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

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)