ADTF
iterator_adapter< T, pointer_iterator >

Adapter for beginning and end iterators which are pointers (e.g. More...

Public Types

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

Public Member Functions

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

Static Public Member Functions

static self_type create (iterator i_oBegin, iterator i_oEnd)
 Create the adapter by assigning begin and end iterators (pointers) More...
 

Private Attributes

iterator m_oBegin
 pointer to the beginning of the containers values
 
iterator m_oEnd
 pointer past the last element of the container values
 

Detailed Description

template<typename T>
struct adtf::ucom::ant::iterator_adapter< T, pointer_iterator >

Adapter for beginning and end iterators which are pointers (e.g.

std::array<>::iterator)

Template Parameters
TValue type of the container both end and begin iterators operate on

Definition at line 255 of file iterator_intf.h.

Member Function Documentation

◆ begin()

iterator begin ( ) const
inline

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

Returns
Pointer to the beginning of the container sequence

Definition at line 269 of file iterator_intf.h.

References iterator_adapter< T, IteratorType >::m_oBegin.

◆ cbegin()

const_iterator cbegin ( ) const
inline

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

Returns
Const pointer to the beginning of the container sequence

Definition at line 281 of file iterator_intf.h.

References iterator_adapter< T, IteratorType >::begin().

◆ cend()

const_iterator cend ( ) const
inline

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

Returns
Const pointer to the end of the container sequence

Definition at line 287 of file iterator_intf.h.

References iterator_adapter< T, IteratorType >::end().

◆ create()

static self_type create ( iterator  i_oBegin,
iterator  i_oEnd 
)
inlinestatic

Create the adapter by assigning begin and end iterators (pointers)

Parameters
[in]i_oBeginPointer to the beginning of the container sequence
[in]i_oEndPointer to the end of the container sequence
Returns
Correctly assigned instance of self_type

Definition at line 295 of file iterator_intf.h.

References iterator_adapter< T, IteratorType >::m_oBegin, and iterator_adapter< T, IteratorType >::m_oEnd.

◆ end()

iterator end ( ) const
inline

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

Returns
Pointer to the end of the container sequence

Definition at line 275 of file iterator_intf.h.

References iterator_adapter< T, IteratorType >::m_oEnd.