Loading...
Searching...
No Matches
ListConstTmpWrap< T >::const_iterator Struct Reference

Define our own iterator so we can refer to it. 'normal', e.g. double*. More...

#include <ListExpression.H>

Public Types

typedef T::const_iterator ConstIter
typedef std::iterator_traits< ConstIterConstIterTraits
using difference_type = typename ConstIterTraits::difference_type
using value_type = typename ConstIterTraits::value_type
using pointer = typename ConstIterTraits::pointer
using reference = typename ConstIterTraits::reference
using iterator_category = typename ConstIterTraits::iterator_category

Public Member Functions

 const_iterator (ConstIter it)
value_type operator* () const
value_type operator[] (const difference_type i) const
const_iteratoroperator++ ()
const_iterator operator++ (int)
const_iteratoroperator-- ()
const_iterator operator-- (int)
const_iterator operator+ (const difference_type i) const
const_iterator operator- (const difference_type i) const
difference_type operator- (const const_iterator &it) const
bool operator== (const const_iterator &it) const
bool operator!= (const const_iterator &it) const
bool operator< (const const_iterator &it) const
bool operator<= (const const_iterator &it) const
bool operator> (const const_iterator &it) const
bool operator>= (const const_iterator &it) const
const_iteratoroperator+= (const difference_type n)
const_iteratoroperator-= (const difference_type n)

Public Attributes

ConstIter base_

Detailed Description

template<class T>
struct Foam::Expression::ListConstTmpWrap< T >::const_iterator

Define our own iterator so we can refer to it. 'normal', e.g. double*.

iterator will not work we'd have to use the iterator traits to get at its e.g. difference_type from other classes. TBD.

Definition at line 671 of file ListExpression.H.

Member Typedef Documentation

◆ ConstIter

template<class T>
typedef T::const_iterator ConstIter

Definition at line 674 of file ListExpression.H.

◆ ConstIterTraits

template<class T>
typedef std::iterator_traits<ConstIter> ConstIterTraits

Definition at line 675 of file ListExpression.H.

◆ difference_type

template<class T>
using difference_type = typename ConstIterTraits::difference_type

Definition at line 676 of file ListExpression.H.

◆ value_type

template<class T>
using value_type = typename ConstIterTraits::value_type

Definition at line 677 of file ListExpression.H.

◆ pointer

template<class T>
using pointer = typename ConstIterTraits::pointer

Definition at line 678 of file ListExpression.H.

◆ reference

template<class T>
using reference = typename ConstIterTraits::reference

Definition at line 679 of file ListExpression.H.

◆ iterator_category

template<class T>
using iterator_category = typename ConstIterTraits::iterator_category

Definition at line 680 of file ListExpression.H.

Constructor & Destructor Documentation

◆ const_iterator()

template<class T>
const_iterator ( ConstIter it)
inline

Definition at line 684 of file ListExpression.H.

References base_.

Referenced by operator!=(), operator+(), operator++(), operator++(), operator+=(), operator-(), operator-(), operator--(), operator--(), operator-=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().

Here is the caller graph for this function:

Member Function Documentation

◆ operator*()

template<class T>
value_type operator* ( ) const
inline

Definition at line 685 of file ListExpression.H.

References base_.

◆ operator[]()

template<class T>
value_type operator[] ( const difference_type i) const
inline

Definition at line 689 of file ListExpression.H.

References base_.

◆ operator++() [1/2]

template<class T>
const_iterator & operator++ ( )
inline

Definition at line 693 of file ListExpression.H.

References base_, and const_iterator().

Here is the call graph for this function:

◆ operator++() [2/2]

template<class T>
const_iterator operator++ ( int )
inline

Definition at line 698 of file ListExpression.H.

References base_, and const_iterator().

Here is the call graph for this function:

◆ operator--() [1/2]

template<class T>
const_iterator & operator-- ( )
inline

Definition at line 704 of file ListExpression.H.

References base_, and const_iterator().

Here is the call graph for this function:

◆ operator--() [2/2]

template<class T>
const_iterator operator-- ( int )
inline

Definition at line 709 of file ListExpression.H.

References base_, and const_iterator().

Here is the call graph for this function:

◆ operator+()

template<class T>
const_iterator operator+ ( const difference_type i) const
inline

Definition at line 715 of file ListExpression.H.

References base_, and const_iterator().

Here is the call graph for this function:

◆ operator-() [1/2]

template<class T>
const_iterator operator- ( const difference_type i) const
inline

Definition at line 719 of file ListExpression.H.

References base_, and const_iterator().

Here is the call graph for this function:

◆ operator-() [2/2]

template<class T>
difference_type operator- ( const const_iterator & it) const
inline

Definition at line 723 of file ListExpression.H.

References base_, and const_iterator().

Here is the call graph for this function:

◆ operator==()

template<class T>
bool operator== ( const const_iterator & it) const
inline

Definition at line 727 of file ListExpression.H.

References base_, and const_iterator().

Here is the call graph for this function:

◆ operator!=()

template<class T>
bool operator!= ( const const_iterator & it) const
inline

Definition at line 731 of file ListExpression.H.

References base_, and const_iterator().

Here is the call graph for this function:

◆ operator<()

template<class T>
bool operator< ( const const_iterator & it) const
inline

Definition at line 735 of file ListExpression.H.

References base_, and const_iterator().

Here is the call graph for this function:

◆ operator<=()

template<class T>
bool operator<= ( const const_iterator & it) const
inline

Definition at line 739 of file ListExpression.H.

References base_, and const_iterator().

Here is the call graph for this function:

◆ operator>()

template<class T>
bool operator> ( const const_iterator & it) const
inline

Definition at line 743 of file ListExpression.H.

References base_, and const_iterator().

Here is the call graph for this function:

◆ operator>=()

template<class T>
bool operator>= ( const const_iterator & it) const
inline

Definition at line 747 of file ListExpression.H.

References base_, and const_iterator().

Here is the call graph for this function:

◆ operator+=()

template<class T>
const_iterator & operator+= ( const difference_type n)
inline

Definition at line 751 of file ListExpression.H.

References base_, const_iterator(), and n.

Here is the call graph for this function:

◆ operator-=()

template<class T>
const_iterator & operator-= ( const difference_type n)
inline

Definition at line 756 of file ListExpression.H.

References base_, const_iterator(), and n.

Here is the call graph for this function:

Member Data Documentation

◆ base_


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