Prepared IteratorWrapper for container like std::vector.  
 More...
#include <OgreIteratorWrapper.h>
|  | 
| typedef IteratorWrapper< T, IteratorType, typenameT::value_type >::PointerType | PointerType | 
|  | 
| typedef IteratorWrapper< T, IteratorType, typenameT::value_type >::ValueType | ValueType | 
|  | 
| typedef IteratorType | const_iterator | 
|  | Typedef to fulfill container interface. 
 | 
|  | 
| typedef IteratorType | iterator | 
|  | Typedef to fulfill container interface. 
 | 
|  | 
| typedef T::value_type * | PointerType | 
|  | Type you expect to get by funktions like peekNext(Value)Ptr. 
 | 
|  | 
| typedef T::value_type | ValueType | 
|  | Type you expect to get by funktions like peekNext(Value) 
 | 
|  | 
|  | 
|  | VectorIteratorWrapper (IteratorType start, IteratorType last) | 
|  | c'tor 
 | 
|  | 
| ValueType | getNext () | 
|  | Returns the next(=current) value element in the collection, and advances to the next. 
 | 
|  | 
| ValueType | peekNext () const | 
|  | Returns the next(=current) element in the collection, without advancing to the next. 
 | 
|  | 
| PointerType | peekNextPtr () const | 
|  | Returns a pointer to the next(=current) element in the collection, without advancing to the next afterwards. 
 | 
|  | 
|  | 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. 
 | 
|  | 
template<typename T, typename IteratorType>
class Ogre::VectorIteratorWrapper< T, IteratorType >
Prepared IteratorWrapper for container like std::vector. 
- Template Parameters
- 
  
    | T | = Container eg vector |  | IteratorType | T::iterator or T::const_iterator |  
 
Have a look at VectorIterator and ConstVectorIterator for a more concrete usage 
◆ PointerType
template<typename T , typename IteratorType > 
      
 
 
◆ ValueType
template<typename T , typename IteratorType > 
      
 
 
◆ VectorIteratorWrapper()
template<typename T , typename IteratorType > 
 
c'tor 
Constructor that provide a start and end iterator to initialise.
- Parameters
- 
  
    | start | Start iterator |  | last | End iterator |  
 
 
 
◆ getNext()
template<typename T , typename IteratorType > 
 
 
◆ peekNext()
template<typename T , typename IteratorType > 
 
Returns the next(=current) element in the collection, without advancing to the next. 
 
 
◆ peekNextPtr()
template<typename T , typename IteratorType > 
 
Returns a pointer to the next(=current) element in the collection, without advancing to the next afterwards. 
 
 
The documentation for this class was generated from the following file: