ADTF
Loading...
Searching...
No Matches
adtf::ucom::ant::iterator_adapter< T, IteratorType > Struct Template Reference

Adapter for begin and end iterators - usable as return and parameter value in interfaces. More...

#include <iterator_intf.h>

Public Types

typedef T value_type
 value type
 
typedef iterator_adapter< value_type, IteratorType > self_type
 self type
 
typedef IteratorType< const value_typeconst_iterator
 const iterator type
 
typedef std::conditional< std::is_const< value_type >::value, const_iterator, IteratorType< value_type > >::type iterator
 iterator type
 

Public Member Functions

iterator begin () const
 Get iterator to the beginning of the container sequence (STL compliant)
 
iterator end () const
 Get iterator to the end of the container sequence (STL compliant)
 
const_iterator cbegin () const
 Get const iterator to the beginning of the container sequence (STL compliant)
 
const_iterator cend () const
 Get const iterator to the end of the container sequence (STL compliant)
 

Friends

template<typename, template< typename > class>
class cForwardIterator
 

Detailed Description

template<typename T, template< typename > class IteratorType = forward_iterator>
struct adtf::ucom::ant::iterator_adapter< T, IteratorType >

Adapter for begin and end iterators - usable as return and parameter value in interfaces.

Template Parameters
TValue type of the container both end and begin iterators operate on
IteratorTypeActual type of the iterator - must be POD type

Member Function Documentation

◆ begin()

template<typename T, template< typename > class IteratorType = forward_iterator>
iterator adtf::ucom::ant::iterator_adapter< T, IteratorType >::begin ( ) const
inline

Get iterator to the beginning of the container sequence (STL compliant)

Returns
Iterator to the beginning of the container sequence

◆ cbegin()

template<typename T, template< typename > class IteratorType = forward_iterator>
const_iterator adtf::ucom::ant::iterator_adapter< T, IteratorType >::cbegin ( ) const
inline

Get const iterator to the beginning of the container sequence (STL compliant)

Returns
Const iterator to the beginning of the container sequence

◆ cend()

template<typename T, template< typename > class IteratorType = forward_iterator>
const_iterator adtf::ucom::ant::iterator_adapter< T, IteratorType >::cend ( ) const
inline

Get const iterator to the end of the container sequence (STL compliant)

Returns
Const iterator to the end of the container sequence

◆ end()

template<typename T, template< typename > class IteratorType = forward_iterator>
iterator adtf::ucom::ant::iterator_adapter< T, IteratorType >::end ( ) const
inline

Get iterator to the end of the container sequence (STL compliant)

Returns
Iterator to the end of the container sequence

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