Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
ConstIter< IT > Class Template Reference

#include "lib/iter-adapter.hpp"

Description

template<class IT>
class lib::ConstIter< IT >

wrapper to expose values as const

Definition at line 1064 of file iter-adapter.hpp.

Public Types

using value_type = const IT::value_type
 
using pointer = const IT::pointer
 
using reference = const IT::reference
 

Public Member Functions

 ConstIter (IT srcIter)
 
 operator bool () const
 
reference operator* () const
 
pointer operator-> () const
 
ConstIteroperator++ ()
 
bool isValid () const
 
bool empty () const
 
IT const & getBase () const
 access the wrapped implementation iterator
 
 ENABLE_USE_IN_STD_RANGE_FOR_LOOPS (ConstIter)
 

Private Attributes

IT i_
 nested source iterator
 

Constructor & Destructor Documentation

◆ ConstIter()

template<class IT >
ConstIter ( IT  srcIter)
inline

Definition at line 1074 of file iter-adapter.hpp.

Member Typedef Documentation

◆ value_type

template<class IT >
using value_type = const IT::value_type

Definition at line 1070 of file iter-adapter.hpp.

◆ pointer

template<class IT >
using pointer = const IT::pointer

Definition at line 1071 of file iter-adapter.hpp.

◆ reference

template<class IT >
using reference = const IT::reference

Definition at line 1072 of file iter-adapter.hpp.

Member Function Documentation

◆ operator bool()

template<class IT >
operator bool ( ) const
inlineexplicit

Definition at line 1079 of file iter-adapter.hpp.

References ConstIter< IT >::isValid().

+ Here is the call graph for this function:

◆ operator*()

template<class IT >
reference operator* ( ) const
inline

Definition at line 1089 of file iter-adapter.hpp.

References ConstIter< IT >::i_.

◆ operator->()

template<class IT >
pointer operator-> ( ) const
inline

Definition at line 1095 of file iter-adapter.hpp.

References ConstIter< IT >::i_.

◆ operator++()

template<class IT >
ConstIter & operator++ ( )
inline

Definition at line 1101 of file iter-adapter.hpp.

References ConstIter< IT >::i_.

◆ isValid()

template<class IT >
bool isValid ( ) const
inline

Definition at line 1108 of file iter-adapter.hpp.

References ConstIter< IT >::i_.

Referenced by ConstIter< IT >::empty(), and ConstIter< IT >::operator bool().

+ Here is the caller graph for this function:

◆ empty()

template<class IT >
bool empty ( ) const
inline

Definition at line 1114 of file iter-adapter.hpp.

References ConstIter< IT >::isValid().

+ Here is the call graph for this function:

◆ getBase()

template<class IT >
IT const & getBase ( ) const
inline

access the wrapped implementation iterator

Definition at line 1122 of file iter-adapter.hpp.

References ConstIter< IT >::i_.

Referenced by lib::operator==().

+ Here is the caller graph for this function:

◆ ENABLE_USE_IN_STD_RANGE_FOR_LOOPS()

template<class IT >
ENABLE_USE_IN_STD_RANGE_FOR_LOOPS ( ConstIter< IT >  )

Member Data Documentation

◆ i_

template<class IT >
IT i_
private
+ Collaboration diagram for ConstIter< IT >:

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