OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
Basefunctionality for IteratorWrappers. More...
#include <OgreIteratorWrapper.h>
Public Types | |
typedef IteratorType | const_iterator |
Typedef to fulfill container interface. | |
typedef IteratorType | iterator |
Typedef to fulfill container interface. | |
typedef ValType * | PointerType |
Type you expect to get by funktions like peekNext(Value)Ptr. | |
typedef ValType | ValueType |
Type you expect to get by funktions like peekNext(Value) | |
Public Member Functions | |
IteratorWrapper (IteratorType start, IteratorType last) | |
Constructor. | |
const IteratorType & | begin () |
Bookmark to the begin of the underlying collection. | |
IteratorType & | current () |
Full access to the current iterator. | |
const IteratorType & | end () |
Bookmark to the end (one behind the last element) of the underlying collection. | |
bool | hasMoreElements () const |
Returns true if there are more items in the collection. | |
void | moveNext () |
Moves the iterator on one element. | |
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
typedef ValType Ogre::IteratorWrapper< T, IteratorType, ValType >::ValueType |
Type you expect to get by funktions like peekNext(Value)
typedef ValType* Ogre::IteratorWrapper< T, IteratorType, ValType >::PointerType |
Type you expect to get by funktions like peekNext(Value)Ptr.
typedef IteratorType Ogre::IteratorWrapper< T, IteratorType, ValType >::iterator |
Typedef to fulfill container interface.
Useful if you want to use BOOST_FOREACH
typedef IteratorType Ogre::IteratorWrapper< T, IteratorType, ValType >::const_iterator |
Typedef to fulfill container interface.
Useful if you want to use BOOST_FOREACH
|
inline |
Constructor.
Provide a start and end iterator to initialise.
|
inline |
Returns true if there are more items in the collection.
|
inline |
Moves the iterator on one element.
|
inline |
Bookmark to the begin of the underlying collection.
|
inline |
Full access to the current iterator.
|
inline |
Bookmark to the end (one behind the last element) of the underlying collection.