OGRE-Next  4.0.0unstable
Object-Oriented Graphics Rendering Engine
Ogre::ConstMapIterator< T > Class Template Reference

Concrete IteratorWrapper for const access to the underlying key-value container. More...

#include <OgreIteratorWrapper.h>

+ Inheritance diagram for Ogre::ConstMapIterator< T >:

Public Member Functions

 ConstMapIterator (const T &c)
 Constructor. More...
 
 ConstMapIterator (typename T::const_iterator start, typename T::const_iterator last)
 Constructor. More...
 
- Public Member Functions inherited from Ogre::MapIteratorWrapper< T, T::const_iterator >
 MapIteratorWrapper (T::const_iterator start, T::const_iterator last)
 Constructor. More...
 
ValueType getNext ()
 Returns the next(=current) value element in the collection, and advances to the next. More...
 
KeyType peekNextKey () const
 Returns the next(=current) key element in the collection, without advancing to the next. More...
 
ValueType peekNextValue () const
 Returns the next(=current) value element in the collection, without advancing to the next. More...
 
const PointerType peekNextValuePtr () const
 Returns a pointer to the next/current value element in the collection, without advancing to the next afterwards. More...
 
- Public Member Functions inherited from Ogre::IteratorWrapper< T, IteratorType, ValType >
 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...
 

Additional Inherited Members

- Public Types inherited from Ogre::MapIteratorWrapper< T, T::const_iterator >
typedef T::key_type KeyType
 Type you expect to get by funktions like peekNextKey. More...
 
typedef T::value_type PairType
 Unused, just to make it clear that map/set::value_type is not a ValueType. More...
 
typedef IteratorWrapper< T, T::const_iterator, typename T::mapped_type >::PointerType PointerType
 Redefined PointerType for a map/set. More...
 
typedef IteratorWrapper< T, T::const_iterator, typename T::mapped_type >::ValueType ValueType
 Redefined ValueType for a map/set. More...
 
- Public Types inherited from Ogre::IteratorWrapper< T, IteratorType, ValType >
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...
 

Detailed Description

template<typename T>
class Ogre::ConstMapIterator< T >

Concrete IteratorWrapper for const access to the underlying key-value container.

Template Parameters
Tkey-value container

Constructor & Destructor Documentation

◆ ConstMapIterator() [1/2]

template<typename T >
Ogre::ConstMapIterator< T >::ConstMapIterator ( typename T::const_iterator  start,
typename T::const_iterator  last 
)
inline

Constructor.

Remarks
Provide a start and end iterator to initialise.

◆ ConstMapIterator() [2/2]

template<typename T >
Ogre::ConstMapIterator< T >::ConstMapIterator ( const T &  c)
inlineexplicit

Constructor.

Remarks
Provide a container to initialise.

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