OGRE
1.12.13
Object-Oriented Graphics Rendering Engine
|
Prepared IteratorWrapper for container like std::vector. More...
#include <OgreIteratorWrapper.h>
Public Types | |
typedef IteratorWrapper< T, IteratorType, typename T::value_type >::PointerType | PointerType |
typedef IteratorWrapper< T, IteratorType, typename T::value_type >::ValueType | ValueType |
Public Types inherited from Ogre::IteratorWrapper< T, IteratorType, T::value_type > | |
typedef IteratorType | const_iterator |
Typedef to fulfill container interface. More... | |
typedef IteratorType | iterator |
Typedef to fulfill container interface. More... | |
typedef T::value_type * | PointerType |
Type you expect to get by funktions like peekNext(Value)Ptr. More... | |
typedef T::value_type | ValueType |
Type you expect to get by funktions like peekNext(Value) More... | |
Public Member Functions | |
VectorIteratorWrapper (IteratorType start, IteratorType last) | |
c'tor More... | |
ValueType | getNext () |
Returns the next(=current) value element in the collection, and advances to the next. More... | |
ValueType | peekNext () const |
Returns the next(=current) element in the collection, without advancing to the next. More... | |
PointerType | peekNextPtr () const |
Returns a pointer to the next(=current) element in the collection, without advancing to the next afterwards. More... | |
Public Member Functions inherited from Ogre::IteratorWrapper< T, IteratorType, T::value_type > | |
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... | |
Prepared IteratorWrapper for container like std::vector.
T | = Container eg vector |
IteratorType | T::iterator or T::const_iterator |
Have a look at VectorIterator and ConstVectorIterator for a more concrete usage
typedef IteratorWrapper<T, IteratorType, typename T::value_type>::ValueType Ogre::VectorIteratorWrapper< T, IteratorType >::ValueType |
typedef IteratorWrapper<T, IteratorType, typename T::value_type>::PointerType Ogre::VectorIteratorWrapper< T, IteratorType >::PointerType |
|
inline |
c'tor
Constructor that provide a start and end iterator to initialise.
start | Start iterator |
last | End iterator |
|
inline |
Returns the next(=current) element in the collection, without advancing to the next.
|
inline |
Returns a pointer to the next(=current) element in the collection, without advancing to the next afterwards.
|
inline |
Returns the next(=current) value element in the collection, and advances to the next.