Public Types | Public Member Functions | Private Attributes | Friends
PtrList::iterator Class Reference

An STL-conforming iterator. More...

Public Types

typedef TTref
 

Public Member Functions

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

Private Attributes

T ** ptr_
 

Friends

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

Detailed Description

An STL-conforming iterator.

Definition at line 281 of file PtrList.H.

Member Typedef Documentation

◆ Tref

typedef T& Tref

Definition at line 297 of file PtrList.H.

Constructor & Destructor Documentation

◆ iterator()

iterator ( T **  ptr)
inline

Construct for a given PtrList entry.

Definition at line 197 of file PtrListI.H.

Member Function Documentation

◆ operator==()

bool operator== ( const iterator iter) const
inline

Definition at line 204 of file PtrListI.H.

References PtrList::iterator::ptr_.

◆ operator!=()

bool operator!= ( const iterator iter) const
inline

Definition at line 211 of file PtrListI.H.

References PtrList::iterator::ptr_.

◆ operator*()

T & operator* ( )
inline

Definition at line 218 of file PtrListI.H.

◆ operator()()

T & operator() ( )
inline

Definition at line 225 of file PtrListI.H.

References Foam::operator*().

Here is the call graph for this function:

◆ operator++() [1/2]

Foam::PtrList< T >::iterator operator++ ( )
inline

Definition at line 233 of file PtrListI.H.

◆ operator++() [2/2]

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

Definition at line 242 of file PtrListI.H.

◆ operator--() [1/2]

Foam::PtrList< T >::iterator operator-- ( )
inline

Definition at line 252 of file PtrListI.H.

◆ operator--() [2/2]

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

Definition at line 261 of file PtrListI.H.

◆ operator+=()

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

Definition at line 271 of file PtrListI.H.

References n.

◆ operator-=()

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

Definition at line 298 of file PtrListI.H.

References n.

◆ operator[]()

T & operator[] ( label  n)
inline

Definition at line 326 of file PtrListI.H.

References n.

◆ operator<()

bool operator< ( const iterator iter) const
inline

Definition at line 333 of file PtrListI.H.

References PtrList::iterator::ptr_.

◆ operator>()

bool operator> ( const iterator iter) const
inline

Definition at line 340 of file PtrListI.H.

References PtrList::iterator::ptr_.

◆ operator<=()

bool operator<= ( const iterator iter) const
inline

Definition at line 347 of file PtrListI.H.

References PtrList::iterator::ptr_.

◆ operator>=()

bool operator>= ( const iterator iter) const
inline

Definition at line 354 of file PtrListI.H.

References PtrList::iterator::ptr_.

Friends And Related Function Documentation

◆ const_iterator

friend class const_iterator
friend

Definition at line 287 of file PtrList.H.

◆ operator+ [1/2]

iterator operator+ ( const iterator ,
label   
)
friend

◆ operator+ [2/2]

iterator operator+ ( label  ,
const iterator  
)
friend

◆ operator- [1/2]

iterator operator- ( const iterator ,
label   
)
friend

◆ operator- [2/2]

label operator- ( const iterator ,
const iterator  
)
friend

Field Documentation

◆ ptr_

T** ptr_
private

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