ADTF
forward_iterator< T >

POD forward iterator type using a forward iterator interface to iterate over a sequence. More...

Public Types

typedef T value_type
 value type
 
typedef forward_iterator< T > self_type
 self type
 
typedef T * pointer
 value pointer type
 
typedef const T * const_pointer
 const value pointer type
 
typedef T & reference
 value reference type
 
typedef const T & const_reference
 const value reference type
 
typedef std::forward_iterator_tag iterator_category
 category of the iterator
 
typedef std::ptrdiff_t difference_type
 pointer difference type
 

Public Member Functions

self_type operator++ ()
 Pre-increment operator using iterator interface method Next() More...
 
self_type operator++ (int32_t)
 Post-increment operator. More...
 
pointer operator-> ()
 Pointer operator. More...
 
const_pointer operator-> () const
 Pointer operator const version. More...
 
reference operator* ()
 Dereference operator. More...
 
const_reference operator* () const
 Dereference operator const version. More...
 

Private Types

typedef std::conditional< std::is_const< value_type >::value, const IForwardIterator< T > *, IForwardIterator< T > * >::type iterator_interface_pointer
 const correct pointer to the iterator interface used to increment this iterator
 

Private Attributes

iterator_interface_pointer m_pIt
 Pointer to iterator interface providing Next()
 
pointer m_pCur
 Pointer to the current value inside the sequence.
 

Detailed Description

template<typename T>
struct adtf::ucom::ant::forward_iterator< T >

POD forward iterator type using a forward iterator interface to iterate over a sequence.

Objects of this type are restricted to be correctly assigned only by friend type iterator_adapter

Template Parameters
TValue type of the container to iterator over

Definition at line 37 of file iterator_intf.h.

Member Function Documentation

◆ operator*() [1/2]

reference operator* ( )
inline

Dereference operator.

Returns
Reference to the current object of the sequence to iterate over

Definition at line 77 of file iterator_intf.h.

References forward_iterator< T >::m_pCur.

◆ operator*() [2/2]

const_reference operator* ( ) const
inline

Dereference operator const version.

Returns
Reference to the current object of the sequence to iterate over

Definition at line 83 of file iterator_intf.h.

References forward_iterator< T >::m_pCur.

◆ operator++() [1/2]

self_type operator++ ( )
inline

Pre-increment operator using iterator interface method Next()

Returns
self_type after incrementing

Definition at line 53 of file iterator_intf.h.

References forward_iterator< T >::m_pCur, and forward_iterator< T >::m_pIt.

◆ operator++() [2/2]

self_type operator++ ( int32_t  )
inline

Post-increment operator.

Returns
self_type before incrementing

Definition at line 59 of file iterator_intf.h.

◆ operator->() [1/2]

pointer operator-> ( )
inline

Pointer operator.

Returns
Pointer to the current object of the sequence to iterate over

Definition at line 65 of file iterator_intf.h.

References forward_iterator< T >::m_pCur.

◆ operator->() [2/2]

const_pointer operator-> ( ) const
inline

Pointer operator const version.

Returns
Pointer to the current object of the sequence to iterate over

Definition at line 71 of file iterator_intf.h.

References forward_iterator< T >::m_pCur.