UIndirectList< T >::iterator Class Reference

An STL-conforming iterator. More...

Public Types

typedef label difference_type
 
typedef T value_type
 
typedef Tpointer
 
typedef Treference
 
typedef std::random_access_iterator_tag iterator_category
 

Public Member Functions

 iterator (UList< T > &, const UList< label >::const_iterator &)
 Construct for a given UList and addressing iterator. More...
 
bool operator== (const iterator &) const
 
bool operator!= (const iterator &) const
 
Toperator* () const
 
Toperator() () const
 
iterator operator++ ()
 
iterator operator++ (const int)
 
iterator operator-- ()
 
iterator operator-- (const int)
 
iterator operator+= (const label)
 
iterator operator-= (const label)
 
iterator operator+ (const label) const
 
iterator operator- (const label) const
 
label operator- (const iterator &) const
 
Toperator[] (const label)
 
bool operator< (const iterator &) const
 
bool operator> (const iterator &) const
 
bool operator<= (const iterator &) const
 
bool operator>= (const iterator &) const
 

Friends

class const_iterator
 

Detailed Description

template<class T>
class Foam::UIndirectList< T >::iterator

An STL-conforming iterator.

Definition at line 171 of file UIndirectList.H.

Member Typedef Documentation

◆ difference_type

Definition at line 190 of file UIndirectList.H.

◆ value_type

typedef T value_type

Definition at line 191 of file UIndirectList.H.

◆ pointer

typedef T* pointer

Definition at line 192 of file UIndirectList.H.

◆ reference

typedef T& reference

Definition at line 193 of file UIndirectList.H.

◆ iterator_category

typedef std::random_access_iterator_tag iterator_category

Definition at line 194 of file UIndirectList.H.

Constructor & Destructor Documentation

◆ iterator()

iterator ( UList< T > &  l,
const UList< label >::const_iterator i 
)
inline

Construct for a given UList and addressing iterator.

Definition at line 220 of file UIndirectListI.H.

Member Function Documentation

◆ operator==()

bool operator== ( const iterator iter) const
inline

Definition at line 232 of file UIndirectListI.H.

◆ operator!=()

bool operator!= ( const iterator iter) const
inline

Definition at line 242 of file UIndirectListI.H.

◆ operator*()

T & operator*
inline

Definition at line 252 of file UIndirectListI.H.

◆ operator()()

T & operator()
inline

Definition at line 259 of file UIndirectListI.H.

References Foam::operator*().

Here is the call graph for this function:

◆ operator++() [1/2]

Definition at line 267 of file UIndirectListI.H.

◆ operator++() [2/2]

Foam::UIndirectList< T >::iterator operator++ ( const int  )
inline

Definition at line 276 of file UIndirectListI.H.

◆ operator--() [1/2]

Definition at line 286 of file UIndirectListI.H.

◆ operator--() [2/2]

Foam::UIndirectList< T >::iterator operator-- ( const int  )
inline

Definition at line 295 of file UIndirectListI.H.

◆ operator+=()

Foam::UIndirectList< T >::iterator operator+= ( const label  n)
inline

Definition at line 305 of file UIndirectListI.H.

References n.

◆ operator-=()

Foam::UIndirectList< T >::iterator operator-= ( const label  n)
inline

Definition at line 314 of file UIndirectListI.H.

References n.

◆ operator+()

Foam::UIndirectList< T >::iterator operator+ ( const label  n) const
inline

Definition at line 323 of file UIndirectListI.H.

References n.

◆ operator-() [1/2]

Foam::UIndirectList< T >::iterator operator- ( const label  n) const
inline

Definition at line 332 of file UIndirectListI.H.

References n.

◆ operator-() [2/2]

label operator- ( const iterator ) const
inline

◆ operator[]()

T & operator[] ( const label  n)
inline

Definition at line 350 of file UIndirectListI.H.

References n.

◆ operator<()

bool operator< ( const iterator iter) const
inline

Definition at line 357 of file UIndirectListI.H.

◆ operator>()

bool operator> ( const iterator iter) const
inline

Definition at line 367 of file UIndirectListI.H.

◆ operator<=()

bool operator<= ( const iterator iter) const
inline

Definition at line 377 of file UIndirectListI.H.

◆ operator>=()

bool operator>= ( const iterator iter) const
inline

Definition at line 387 of file UIndirectListI.H.

Friends And Related Function Documentation

◆ const_iterator

friend class const_iterator
friend

Definition at line 179 of file UIndirectList.H.


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