#include <OgreIteratorWrappers.h>
Public Types | |
typedef T::mapped_type | MappedType |
typedef T::key_type | KeyType |
Public Member Functions | |
MapIterator (typename T::iterator start, typename T::iterator end) | |
Constructor. | |
MapIterator (T &c) | |
Constructor. | |
bool | hasMoreElements (void) const |
Returns true if there are more items in the collection. | |
T::mapped_type | getNext (void) |
Returns the next value element in the collection, and advances to the next. | |
T::mapped_type | peekNextValue (void) |
Returns the next value element in the collection, without advancing to the next. | |
T::key_type | peekNextKey (void) |
Returns the next key element in the collection, without advancing to the next. | |
MapIterator< T > & | operator= (MapIterator< T > &rhs) |
Required to overcome intermittent bug. | |
T::mapped_type * | peekNextValuePtr (void) |
Returns a pointer to the next value element in the collection, without advancing to the next afterwards. | |
void | moveNext (void) |
Moves the iterator on one element. | |
Private Member Functions | |
MapIterator () | |
Private constructor since only the parameterised constructor should be used. | |
Private Attributes | |
T::iterator | mCurrent |
T::iterator | mEnd |
Definition at line 125 of file OgreIteratorWrappers.h.
typedef T::mapped_type Ogre::MapIterator< T >::MappedType |
Definition at line 131 of file OgreIteratorWrappers.h.
typedef T::key_type Ogre::MapIterator< T >::KeyType |
Definition at line 134 of file OgreIteratorWrappers.h.
Ogre::MapIterator< T >::MapIterator | ( | ) | [private] |
Private constructor since only the parameterised constructor should be used.
Definition at line 131 of file OgreIteratorWrappers.h.
Ogre::MapIterator< T >::MapIterator | ( | typename T::iterator | start, | |
typename T::iterator | end | |||
) |
Constructor.
Definition at line 140 of file OgreIteratorWrappers.h.
Ogre::MapIterator< T >::MapIterator | ( | T & | c | ) | [explicit] |
Constructor.
Definition at line 149 of file OgreIteratorWrappers.h.
bool Ogre::MapIterator< T >::hasMoreElements | ( | void | ) | const |
Returns true if there are more items in the collection.
Definition at line 155 of file OgreIteratorWrappers.h.
References Ogre::MapIterator< T >::mCurrent, and Ogre::MapIterator< T >::mEnd.
T::mapped_type Ogre::MapIterator< T >::getNext | ( | void | ) |
Returns the next value element in the collection, and advances to the next.
Definition at line 161 of file OgreIteratorWrappers.h.
References Ogre::MapIterator< T >::mCurrent.
T::mapped_type Ogre::MapIterator< T >::peekNextValue | ( | void | ) |
Returns the next value element in the collection, without advancing to the next.
Definition at line 166 of file OgreIteratorWrappers.h.
References Ogre::MapIterator< T >::mCurrent.
T::key_type Ogre::MapIterator< T >::peekNextKey | ( | void | ) |
Returns the next key element in the collection, without advancing to the next.
Definition at line 171 of file OgreIteratorWrappers.h.
References Ogre::MapIterator< T >::mCurrent.
MapIterator<T>& Ogre::MapIterator< T >::operator= | ( | MapIterator< T > & | rhs | ) |
Required to overcome intermittent bug.
Definition at line 176 of file OgreIteratorWrappers.h.
References Ogre::MapIterator< T >::mCurrent, and Ogre::MapIterator< T >::mEnd.
T::mapped_type* Ogre::MapIterator< T >::peekNextValuePtr | ( | void | ) |
Returns a pointer to the next value element in the collection, without advancing to the next afterwards.
Definition at line 184 of file OgreIteratorWrappers.h.
References Ogre::MapIterator< T >::mCurrent.
void Ogre::MapIterator< T >::moveNext | ( | void | ) |
Moves the iterator on one element.
Definition at line 189 of file OgreIteratorWrappers.h.
References Ogre::MapIterator< T >::mCurrent.
T::iterator Ogre::MapIterator< T >::mCurrent [private] |
Definition at line 128 of file OgreIteratorWrappers.h.
Referenced by Ogre::MapIterator< T >::getNext(), Ogre::MapIterator< T >::hasMoreElements(), Ogre::MapIterator< T >::moveNext(), Ogre::MapIterator< T >::operator=(), Ogre::MapIterator< T >::peekNextKey(), Ogre::MapIterator< T >::peekNextValue(), and Ogre::MapIterator< T >::peekNextValuePtr().
T::iterator Ogre::MapIterator< T >::mEnd [private] |
Definition at line 129 of file OgreIteratorWrappers.h.
Referenced by Ogre::MapIterator< T >::hasMoreElements(), and Ogre::MapIterator< T >::operator=().
Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Sep 27 22:03:51 2009