Basefunctionality for IteratorWrappers. More...
#include <OgreIteratorWrapper.h>
Public Types | |
typedef IteratorType | const_iterator |
typedef to fulfill container interface More... | |
typedef IteratorType | iterator |
typedef to fulfill container interface More... | |
typedef ValType * | PointerType |
type you expect to get by funktions like peekNext(Value)Ptr More... | |
typedef ValType | ValueType |
type you expect to get by funktions like peekNext(Value) More... | |
Public Member Functions | |
IteratorWrapper (IteratorType start, IteratorType last) | |
Constructor. More... | |
const IteratorType & | begin () |
bookmark to the begin of the underlying collection More... | |
IteratorType & | current () |
full access to the current iterator More... | |
const IteratorType & | end () |
bookmark to the end (one behind the last element) of the underlying collection More... | |
bool | hasMoreElements () const |
Returns true if there are more items in the collection. More... | |
void | moveNext () |
Moves the iterator on one element. More... | |
Protected Attributes | |
IteratorType | mBegin |
IteratorType | mCurrent |
IteratorType | mEnd |
Private Member Functions | |
IteratorWrapper () | |
Private constructor since only the parameterised constructor should be used. More... | |
Basefunctionality for IteratorWrappers.
T | a Container like vector list map ... |
IteratorType | T::iterator or T::const_iterator |
ValType | T::mapped_type in case of a map, T::value_type for vector, list,... |
have a look at VectorIteratorWrapper and MapIteratorWrapper for a concrete usage
Definition at line 46 of file OgreIteratorWrapper.h.
typedef IteratorType Ogre::IteratorWrapper< T, IteratorType, ValType >::const_iterator |
typedef to fulfill container interface
Userfull if you want to use BOOST_FOREACH
Definition at line 82 of file OgreIteratorWrapper.h.
typedef IteratorType Ogre::IteratorWrapper< T, IteratorType, ValType >::iterator |
typedef to fulfill container interface
Userfull if you want to use BOOST_FOREACH
Definition at line 73 of file OgreIteratorWrapper.h.
typedef ValType* Ogre::IteratorWrapper< T, IteratorType, ValType >::PointerType |
type you expect to get by funktions like peekNext(Value)Ptr
Definition at line 64 of file OgreIteratorWrapper.h.
typedef ValType Ogre::IteratorWrapper< T, IteratorType, ValType >::ValueType |
type you expect to get by funktions like peekNext(Value)
Definition at line 62 of file OgreIteratorWrapper.h.
|
private |
Private constructor since only the parameterised constructor should be used.
|
inline |
Constructor.
Definition at line 92 of file OgreIteratorWrapper.h.
|
inline |
bookmark to the begin of the underlying collection
Definition at line 112 of file OgreIteratorWrapper.h.
|
inline |
full access to the current iterator
Definition at line 116 of file OgreIteratorWrapper.h.
|
inline |
bookmark to the end (one behind the last element) of the underlying collection
Definition at line 119 of file OgreIteratorWrapper.h.
|
inline |
Returns true if there are more items in the collection.
Definition at line 99 of file OgreIteratorWrapper.h.
Referenced by Ogre::RenderQueueGroup::merge().
|
inline |
Moves the iterator on one element.
Definition at line 106 of file OgreIteratorWrapper.h.
|
protected |
Definition at line 54 of file OgreIteratorWrapper.h.
Referenced by Ogre::IteratorWrapper< T, IteratorType, T::mapped_type >::begin().
|
protected |
|
protected |
Definition at line 56 of file OgreIteratorWrapper.h.
Referenced by Ogre::IteratorWrapper< T, IteratorType, T::mapped_type >::end(), and Ogre::IteratorWrapper< T, IteratorType, T::mapped_type >::hasMoreElements().