Public Member Functions | Data Fields | Private Attributes | Friends
PtrList::const_iterator Class Reference

An STL-conforming const_iterator. More...

Public Member Functions

 const_iterator (const T *const *)
 Construct for a given PtrList entry. More...
 
 const_iterator (const iterator &)
 Construct from an iterator. More...
 
bool operator== (const const_iterator &) const
 
bool operator!= (const const_iterator &) const
 
Tref operator* ()
 
Tref operator() ()
 
const_iterator operator++ ()
 
const_iterator operator++ (int)
 
const_iterator operator-- ()
 
const_iterator operator-- (int)
 
const_iterator operator+= (label)
 
const_iterator operator-= (label)
 
const Toperator[] (label)
 
bool operator< (const const_iterator &) const
 
bool operator> (const const_iterator &) const
 
bool operator<= (const const_iterator &) const
 
bool operator>= (const const_iterator &) const
 

Data Fields

const typedef TTref
 

Private Attributes

const T *const * ptr_
 

Friends

const_iterator operator+ (const const_iterator &, label)
 
const_iterator operator+ (label, const const_iterator &)
 
const_iterator operator- (const const_iterator &, label)
 
label operator- (const const_iterator &, const const_iterator &)
 

Detailed Description

An STL-conforming const_iterator.

Definition at line 342 of file PtrList.H.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

const_iterator ( const T *const *  )
inline

Construct for a given PtrList entry.

◆ const_iterator() [2/2]

const_iterator ( const iterator )
inline

Construct from an iterator.

Member Function Documentation

◆ operator==()

bool operator== ( const const_iterator iter) const
inline

Definition at line 392 of file PtrListI.H.

◆ operator!=()

bool operator!= ( const const_iterator iter) const
inline

Definition at line 402 of file PtrListI.H.

◆ operator*()

const T & operator* ( )
inline

Definition at line 411 of file PtrListI.H.

References PtrList::const_iterator::ptr_.

◆ operator()()

const T & operator() ( )
inline

Definition at line 418 of file PtrListI.H.

References Foam::operator*().

Here is the call graph for this function:

◆ operator++() [1/2]

Definition at line 426 of file PtrListI.H.

◆ operator++() [2/2]

Foam::PtrList< T >::const_iterator operator++ ( int  )
inline

Definition at line 435 of file PtrListI.H.

◆ operator--() [1/2]

Definition at line 445 of file PtrListI.H.

◆ operator--() [2/2]

Foam::PtrList< T >::const_iterator operator-- ( int  )
inline

Definition at line 454 of file PtrListI.H.

◆ operator+=()

Definition at line 464 of file PtrListI.H.

References n.

◆ operator-=()

Definition at line 491 of file PtrListI.H.

References n.

◆ operator[]()

const T & operator[] ( label  n)
inline

Definition at line 519 of file PtrListI.H.

References n.

◆ operator<()

bool operator< ( const const_iterator iter) const
inline

Definition at line 527 of file PtrListI.H.

◆ operator>()

bool operator> ( const const_iterator iter) const
inline

Definition at line 537 of file PtrListI.H.

◆ operator<=()

bool operator<= ( const const_iterator iter) const
inline

Definition at line 547 of file PtrListI.H.

◆ operator>=()

bool operator>= ( const const_iterator iter) const
inline

Definition at line 557 of file PtrListI.H.

Friends And Related Function Documentation

◆ operator+ [1/2]

const_iterator operator+ ( const const_iterator ,
label   
)
friend

◆ operator+ [2/2]

const_iterator operator+ ( label  ,
const const_iterator  
)
friend

◆ operator- [1/2]

const_iterator operator- ( const const_iterator ,
label   
)
friend

◆ operator- [2/2]

label operator- ( const const_iterator ,
const const_iterator  
)
friend

Field Documentation

◆ Tref

const typedef T& Tref

Definition at line 360 of file PtrList.H.

◆ ptr_

const T* const* ptr_
private

Definition at line 344 of file PtrList.H.

Referenced by PtrList::const_iterator::operator*().


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