aimstil  5.0.5
til::rle_array< T, TCount >::const_iterator Class Reference

#include <til/rle_array.h>

Inheritance diagram for til::rle_array< T, TCount >::const_iterator:
Collaboration diagram for til::rle_array< T, TCount >::const_iterator:

Public Types

typedef detail::rle_array_iterator_base< const rle_array< T, TCount >, typename Data::const_iterator > Base
 
typedef Base::value_type value_type
 
typedef Base::reference reference
 
typedef Base::pointer pointer
 
- Public Types inherited from til::detail::rle_array_iterator_base< const rle_array< T, TCount >, Data::const_iterator >
typedef rle_array_iterator_base< const rle_array< T, TCount >, Data::const_iterator > Self
 
typedef const rle_array< T, TCount > container
 
typedef const rle_array< T, TCount > ::count_type count_type
 
typedef std::pair< Data::const_iterator, count_typeindex_type
 
typedef value_proxy< const rle_array< T, TCount >, index_type, policy::VPAccess_Default< container, index_type &> > ValueProxy
 
typedef container::value_type value_type
 
typedef ValueProxyreference
 
typedef ValueProxy::const_pointer pointer
 

Public Member Functions

 const_iterator (const typename Data::const_iterator &i, TCount segindex, std::size_t pos, const rle_array< T, TCount > &c)
 
template<typename XRLEArray , typename XIterator >
 const_iterator (const detail::rle_array_iterator_base< XRLEArray, XIterator > &b)
 This is only to convert from an rle_array<T,TCount>::iterator, so that one can write const_iterator i = a.begin() even when a is non-const. More...
 
- Public Member Functions inherited from til::detail::rle_array_iterator_base< const rle_array< T, TCount >, Data::const_iterator >
 rle_array_iterator_base (const Data::const_iterator &i, count_type segindex, std::size_t pos, container &c)
 
 rle_array_iterator_base (const rle_array_iterator_base< XRLEArray, XIterator > &b)
 
std::size_t pos () const
 Return the current position of the iterator in the array. More...
 
const ValueProxyproxy () const
 
reference operator* ()
 
pointer operator-> ()
 
void operator++ ()
 
void print ()
 

Detailed Description

template<typename T, typename TCount = unsigned int>
class til::rle_array< T, TCount >::const_iterator

Definition at line 289 of file rle_array.h.

Member Typedef Documentation

◆ Base

template<typename T, typename TCount = unsigned int>
typedef detail::rle_array_iterator_base<const rle_array<T,TCount>, typename Data::const_iterator> til::rle_array< T, TCount >::const_iterator::Base

Definition at line 292 of file rle_array.h.

◆ pointer

template<typename T, typename TCount = unsigned int>
typedef Base::pointer til::rle_array< T, TCount >::const_iterator::pointer

Definition at line 295 of file rle_array.h.

◆ reference

template<typename T, typename TCount = unsigned int>
typedef Base::reference til::rle_array< T, TCount >::const_iterator::reference

Definition at line 294 of file rle_array.h.

◆ value_type

template<typename T, typename TCount = unsigned int>
typedef Base::value_type til::rle_array< T, TCount >::const_iterator::value_type

Definition at line 293 of file rle_array.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

template<typename T, typename TCount = unsigned int>
til::rle_array< T, TCount >::const_iterator::const_iterator ( const typename Data::const_iterator &  i,
TCount  segindex,
std::size_t  pos,
const rle_array< T, TCount > &  c 
)
inline

Definition at line 297 of file rle_array.h.

◆ const_iterator() [2/2]

template<typename T, typename TCount = unsigned int>
template<typename XRLEArray , typename XIterator >
til::rle_array< T, TCount >::const_iterator::const_iterator ( const detail::rle_array_iterator_base< XRLEArray, XIterator > &  b)
inline

This is only to convert from an rle_array<T,TCount>::iterator, so that one can write const_iterator i = a.begin() even when a is non-const.

Convertions from other types are unsafe and probably won't compile.

Definition at line 304 of file rle_array.h.


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