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

Concrete IteratorWrapper for nonconst access to the underlying container. More...

#include <OgreIteratorWrapper.h>

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

Public Member Functions

 VectorIterator (T &c)
 Constructor. More...
 
 VectorIterator (typename T::iterator start, typename T::iterator last)
 Constructor. More...
 
- Public Member Functions inherited from Ogre::VectorIteratorWrapper< T, T::iterator >
 VectorIteratorWrapper (T::iterator start, T::iterator 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, 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::VectorIteratorWrapper< T, T::iterator >
typedef IteratorWrapper< T, T::iterator, typename T::value_type >::PointerType PointerType
 
typedef IteratorWrapper< T, T::iterator, typename T::value_type >::ValueType ValueType
 
- 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::VectorIterator< T >

Concrete IteratorWrapper for nonconst access to the underlying container.

Template Parameters
TContainer

Constructor & Destructor Documentation

◆ VectorIterator() [1/2]

template<typename T >
Ogre::VectorIterator< T >::VectorIterator ( typename T::iterator  start,
typename T::iterator  last 
)
inline

Constructor.

Remarks
Provide a start and end iterator to initialise.

◆ VectorIterator() [2/2]

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

Constructor.

Remarks
Provide a container to initialise.

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