UPtrList< T >::const_iterator Class Reference

Random-access iterator with const access. More...

Public Types

using iterator_category = std::random_access_iterator_tag
 
using value_type = const T
 
using difference_type = label
 
using pointer = const T *
 
using reference = const T &
 

Public Member Functions

 const_iterator (const T *const *ptr)
 Construct for a given entry. More...
 
 const_iterator (const iterator &iter)
 Copy construct from non-const iterator. More...
 
pointer get () const
 Return pointer, can be nullptr. More...
 
bool operator== (const const_iterator &iter) const
 
bool operator!= (const const_iterator &iter) const
 
pointer operator-> () const
 
reference operator* () const
 
reference operator() () const
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
const_iteratoroperator-- ()
 
const_iterator operator-- (int)
 
const_iteratoroperator+= (difference_type n)
 
const_iteratoroperator-= (difference_type n)
 
const_iterator operator+ (difference_type n) const
 
const_iterator operator- (difference_type n) const
 
difference_type operator- (const const_iterator &iter) const
 
reference operator[] (difference_type n) const
 
bool operator< (const const_iterator &iter) const
 
bool operator> (const const_iterator &iter) const
 
bool operator<= (const const_iterator &iter) const
 
bool operator>= (const const_iterator &iter) const
 

Detailed Description

template<class T>
class Foam::UPtrList< T >::const_iterator

Random-access iterator with const access.

Definition at line 283 of file UPtrList.H.

Member Typedef Documentation

◆ iterator_category

using iterator_category = std::random_access_iterator_tag

Definition at line 289 of file UPtrList.H.

◆ value_type

using value_type = const T

Definition at line 290 of file UPtrList.H.

◆ difference_type

Definition at line 291 of file UPtrList.H.

◆ pointer

using pointer = const T*

Definition at line 292 of file UPtrList.H.

◆ reference

using reference = const T&

Definition at line 293 of file UPtrList.H.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

const_iterator ( const T *const *  ptr)
inline

Construct for a given entry.

Definition at line 407 of file UPtrListI.H.

◆ const_iterator() [2/2]

const_iterator ( const iterator iter)
inline

Copy construct from non-const iterator.

Definition at line 414 of file UPtrListI.H.

Member Function Documentation

◆ get()

const T * get ( ) const
inline

Return pointer, can be nullptr.

Definition at line 421 of file UPtrListI.H.

◆ operator==()

bool operator== ( const const_iterator iter) const
inline

Definition at line 429 of file UPtrListI.H.

◆ operator!=()

bool operator!= ( const const_iterator iter) const
inline

Definition at line 439 of file UPtrListI.H.

◆ operator->()

const T * operator-> ( ) const
inline

Definition at line 448 of file UPtrListI.H.

◆ operator*()

const T & operator* ( ) const
inline

Definition at line 455 of file UPtrListI.H.

◆ operator()()

const T & operator() ( ) const
inline

Definition at line 462 of file UPtrListI.H.

◆ operator++() [1/2]

Definition at line 470 of file UPtrListI.H.

◆ operator++() [2/2]

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

Definition at line 479 of file UPtrListI.H.

◆ operator--() [1/2]

Definition at line 489 of file UPtrListI.H.

◆ operator--() [2/2]

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

Definition at line 498 of file UPtrListI.H.

◆ operator+=()

Definition at line 508 of file UPtrListI.H.

References n.

◆ operator-=()

Definition at line 517 of file UPtrListI.H.

References n.

◆ operator+()

Definition at line 526 of file UPtrListI.H.

References n.

◆ operator-() [1/2]

Definition at line 534 of file UPtrListI.H.

References n.

◆ operator-() [2/2]

Foam::label operator- ( const const_iterator iter) const
inline

Definition at line 542 of file UPtrListI.H.

◆ operator[]()

const T & operator[] ( difference_type  n) const
inline

Definition at line 550 of file UPtrListI.H.

References n.

◆ operator<()

bool operator< ( const const_iterator iter) const
inline

Definition at line 558 of file UPtrListI.H.

◆ operator>()

bool operator> ( const const_iterator iter) const
inline

Definition at line 568 of file UPtrListI.H.

◆ operator<=()

bool operator<= ( const const_iterator iter) const
inline

Definition at line 578 of file UPtrListI.H.

◆ operator>=()

bool operator>= ( const const_iterator iter) const
inline

Definition at line 588 of file UPtrListI.H.


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