Basefunctionality for IteratorWrappers.  
 More...
#include <OgreIteratorWrapper.h>
|  | 
| typedef IteratorType | const_iterator | 
|  | Typedef to fulfill container interface. 
 | 
|  | 
| typedef IteratorType | iterator | 
|  | Typedef to fulfill container interface. 
 | 
|  | 
| typedef ValType * | PointerType | 
|  | Type you expect to get by funktions like peekNext(Value)Ptr. 
 | 
|  | 
| typedef ValType | ValueType | 
|  | Type you expect to get by funktions like peekNext(Value) 
 | 
|  | 
|  | 
|  | 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, typename ValType>
class Ogre::IteratorWrapper< T, IteratorType, ValType >
Basefunctionality for IteratorWrappers. 
- Template Parameters
- 
  
    | T | a Container like vector list map ... |  | IteratorType | T::iterator or T::const_iterator |  | ValType | T::mapped_type in case of a map, T::value_type for vector, list,... |  
 
Have a look at VectorIteratorWrapper and MapIteratorWrapper for a concrete usage 
◆ ValueType
template<typename T, typename IteratorType, typename ValType> 
      
 
Type you expect to get by funktions like peekNext(Value) 
 
 
◆ PointerType
template<typename T, typename IteratorType, typename ValType> 
      
 
Type you expect to get by funktions like peekNext(Value)Ptr. 
 
 
◆ iterator
template<typename T, typename IteratorType, typename ValType> 
      
 
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.
 
 
◆ const_iterator
template<typename T, typename IteratorType, typename ValType> 
      
 
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.
 
 
◆ IteratorWrapper()
template<typename T, typename IteratorType, typename ValType> 
  
  | 
        
          | Ogre::IteratorWrapper< T, IteratorType, ValType >::IteratorWrapper | ( | IteratorType | start, |  
          |  |  | IteratorType | last ) |  | inline | 
 
Constructor. 
Provide a start and end iterator to initialise. 
 
 
◆ hasMoreElements()
template<typename T, typename IteratorType, typename ValType> 
 
Returns true if there are more items in the collection. 
 
 
◆ moveNext()
template<typename T, typename IteratorType, typename ValType> 
 
Moves the iterator on one element. 
 
 
◆ begin()
template<typename T, typename IteratorType, typename ValType> 
 
Bookmark to the begin of the underlying collection. 
 
 
◆ current()
template<typename T, typename IteratorType, typename ValType> 
 
Full access to the current iterator. 
 
 
◆ end()
template<typename T, typename IteratorType, typename ValType> 
 
Bookmark to the end (one behind the last element) of the underlying collection. 
 
 
The documentation for this class was generated from the following file: