#include <OgreIteratorWrappers.h>
Public Methods | |
ConstMapIterator (typename T::const_iterator start, typename T::const_iterator end) | |
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) const |
Returns the next value element in the collection, without advancing to the next. | |
T::key_type | peekNextKey (void) const |
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::const_pointer | peekNextValuePtr (void) const |
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 Methods | |
ConstMapIterator () | |
Private constructor since only the parameterised constructor should be used. | |
Private Attributes | |
T::const_iterator | mCurrent |
T::const_iterator | mEnd |
Note that like STL iterators, these iterators are only valid whilst no updates are made to the underlying collection. You should not attempt to use this iterator if a change is made to the collection. In fact, treat this iterator as a transient object, do NOT store it and try to use it repeatedly.
Definition at line 248 of file OgreIteratorWrappers.h.
|
Private constructor since only the parameterised constructor should be used.
Definition at line 254 of file OgreIteratorWrappers.h. |
|
Constructor.
Definition at line 260 of file OgreIteratorWrappers.h. References Ogre::ConstMapIterator< T >::mCurrent, and Ogre::ConstMapIterator< T >::mEnd. |
|
Returns the next value element in the collection, and advances to the next.
Definition at line 272 of file OgreIteratorWrappers.h. References Ogre::ConstMapIterator< T >::mCurrent. |
|
Returns true if there are more items in the collection.
Definition at line 266 of file OgreIteratorWrappers.h. References Ogre::ConstMapIterator< T >::mCurrent, and Ogre::ConstMapIterator< T >::mEnd. |
|
Moves the iterator on one element.
Definition at line 300 of file OgreIteratorWrappers.h. References Ogre::ConstMapIterator< T >::mCurrent. |
|
Required to overcome intermittent bug.
Definition at line 287 of file OgreIteratorWrappers.h. References Ogre::MapIterator< T >::mCurrent, Ogre::ConstMapIterator< T >::mCurrent, Ogre::MapIterator< T >::mEnd, and Ogre::ConstMapIterator< T >::mEnd. |
|
Returns the next key element in the collection, without advancing to the next.
Definition at line 282 of file OgreIteratorWrappers.h. References Ogre::ConstMapIterator< T >::mCurrent. |
|
Returns the next value element in the collection, without advancing to the next.
Definition at line 277 of file OgreIteratorWrappers.h. References Ogre::ConstMapIterator< T >::mCurrent. |
|
Returns a pointer to the next value element in the collection, without advancing to the next afterwards.
Definition at line 295 of file OgreIteratorWrappers.h. References Ogre::ConstMapIterator< T >::mCurrent. |
|
|
Definition at line 252 of file OgreIteratorWrappers.h. Referenced by Ogre::ConstMapIterator< T >::ConstMapIterator(), Ogre::ConstMapIterator< T >::hasMoreElements(), and Ogre::ConstMapIterator< T >::operator=(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Fri May 14 23:25:46 2004