OGRE 2.1
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::IteratorWrapper< T, IteratorType, ValType > Class Template Reference

Basefunctionality for IteratorWrappers. More...

#include <OgreIteratorWrapper.h>

+ Inheritance diagram for Ogre::IteratorWrapper< T, IteratorType, ValType >:

Public Types

typedef IteratorType const_iterator
 Typedef to fulfill container interface.
 
typedef IteratorType iterator
 Typedef to fulfill container interface.
 
typedef ValTypePointerType
 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 IteratorTypebegin ()
 Bookmark to the begin of the underlying collection.
 
IteratorTypecurrent ()
 Full access to the current iterator.
 
const IteratorTypeend ()
 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.
 

Detailed Description

template<typename T, typename IteratorType, typename ValType>
class Ogre::IteratorWrapper< T, IteratorType, ValType >

Basefunctionality for IteratorWrappers.

Template Parameters
Ta Container like vector list map ...
IteratorTypeT::iterator or T::const_iterator
ValTypeT::mapped_type in case of a map, T::value_type for vector, list,...

Have a look at VectorIteratorWrapper and MapIteratorWrapper for a concrete usage

Member Typedef Documentation

◆ const_iterator

Typedef to fulfill container interface.

Useful if you want to use BOOST_FOREACH

Note
there is no distinction between const_iterator and iterator.
keep this in mind if you want to derivate from this class.

◆ iterator

Typedef to fulfill container interface.

Useful if you want to use BOOST_FOREACH

Note
there is no distinction between const_iterator and iterator.
keep this in mind if you want to derivate from this class.

◆ PointerType

Type you expect to get by funktions like peekNext(Value)Ptr.

◆ ValueType

Type you expect to get by funktions like peekNext(Value)

Constructor & Destructor Documentation

◆ IteratorWrapper()

Ogre::IteratorWrapper< T, IteratorType, ValType >::IteratorWrapper ( IteratorType  start,
IteratorType  last 
)
inline

Constructor.

Remarks
Provide a start and end iterator to initialise.

Member Function Documentation

◆ begin()

Bookmark to the begin of the underlying collection.

◆ current()

Full access to the current iterator.

◆ end()

Bookmark to the end (one behind the last element) of the underlying collection.

◆ hasMoreElements()

bool Ogre::IteratorWrapper< T, IteratorType, ValType >::hasMoreElements ( ) const
inline

Returns true if there are more items in the collection.

◆ moveNext()

Moves the iterator on one element.


The documentation for this class was generated from the following file: