This class implements an enumerator adapter for STL container based on iterators. 
 More...
#include <Enumerator.hxx>
template<class T>
template<class Iterator, class IteratorAdapter = typename IteratorAdapters<Iterator>::Value>
class Arp::Enumerator< T >::StlAdapter< Iterator, IteratorAdapter >
This class implements an enumerator adapter for STL container based on iterators.
- Template Parameters
 - 
  
    | Iterator | The iterator type of the container. | 
    | IteratorAdapter | The iterator type of the container. | 
  
   
Use Enumerator<T>::CreateStlAdapter() to create an instance of this class.
 
◆ StlAdapter() [1/2]
template<class T > 
template<class Iterator , class IteratorAdapter > 
 
Constructs an StlAdapter instance.
- Parameters
 - 
  
    | begin | The begin iterator of the container to enumerate. | 
    | end | The end iterator of the container to enumerate. | 
  
   
 
 
◆ StlAdapter() [2/2]
template<class T> 
template<class Iterator , class IteratorAdapter  = typename IteratorAdapters<Iterator>::Value> 
 
Copy constructor.
- Parameters
 - 
  
  
 
 
 
◆ ~StlAdapter()
template<class T> 
template<class Iterator , class IteratorAdapter  = typename IteratorAdapters<Iterator>::Value> 
 
Destructs this instance and frees all resources.
 
 
◆ GetCurrent()
template<class T > 
template<class Iterator , class IteratorAdapter > 
 
Gets the element at the current position.
- Returns
 - The element at the current position.
 
Depending an the template parameter type of this interface, a reference or even const reference might be returned.
Implements Arp::IEnumerator< T >.
 
 
◆ MoveNext()
template<class T > 
template<class Iterator , class IteratorAdapter > 
 
Moves this enumerator to the next position.
- Returns
 false if the end of the container/collections was reached and the enumerator was not moved, otherwise false.
See comments of interface declaration for more information about this operation.
IEnumerator 
Implements Arp::IEnumerator< T >.
 
 
◆ operator=()
template<class T> 
template<class Iterator , class IteratorAdapter  = typename IteratorAdapters<Iterator>::Value> 
 
Assignment operator.
- Parameters
 - 
  
  
 
- Returns
 - This instance as reference.
 
 
 
The documentation for this class was generated from the following file: