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

Detailed Description

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

Random-access iterator with const access.

Definition at line 380 of file UPtrList.H.

Member Typedef Documentation

◆ iterator_category

using iterator_category = std::random_access_iterator_tag

Definition at line 387 of file UPtrList.H.

◆ value_type

using value_type = const T

Definition at line 388 of file UPtrList.H.

◆ difference_type

using difference_type = label

Definition at line 389 of file UPtrList.H.

◆ pointer

using pointer = const T*

Definition at line 390 of file UPtrList.H.

◆ reference

using reference = const T&

Definition at line 391 of file UPtrList.H.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

const_iterator ( const T *const *  ptr)
inlinenoexcept

Construct for a given entry.

Definition at line 443 of file UPtrListI.H.

◆ const_iterator() [2/2]

const_iterator ( const iterator iter)
inlinenoexcept

Copy construct from non-const iterator.

Definition at line 451 of file UPtrListI.H.

Member Function Documentation

◆ get()

const T * get
inline

Return pointer, can be nullptr.

Definition at line 459 of file UPtrListI.H.

◆ operator->()

const T * operator->
inline

Definition at line 466 of file UPtrListI.H.

◆ operator*()

const T & operator*
inline

Definition at line 473 of file UPtrListI.H.

◆ operator()()

reference operator() ( ) const
inline

Definition at line 409 of file UPtrList.H.

References UPtrList< T >::iterator::operator*().

Here is the call graph for this function:

◆ operator[]()

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

Definition at line 481 of file UPtrListI.H.

References n.

◆ operator++() [1/2]

Foam::UPtrList< T >::const_iterator & operator++
inlinenoexcept

Definition at line 489 of file UPtrListI.H.

◆ operator++() [2/2]

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

Definition at line 498 of file UPtrListI.H.

◆ operator--() [1/2]

Foam::UPtrList< T >::const_iterator & operator--
inlinenoexcept

Definition at line 508 of file UPtrListI.H.

◆ operator--() [2/2]

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

Definition at line 517 of file UPtrListI.H.

◆ operator+=()

Definition at line 527 of file UPtrListI.H.

References n.

◆ operator-=()

Definition at line 536 of file UPtrListI.H.

References n.

◆ operator+()

Foam::UPtrList< T >::const_iterator operator+ ( difference_type  n) const
inlinenoexcept

Definition at line 545 of file UPtrListI.H.

References n.

◆ operator-() [1/2]

Foam::UPtrList< T >::const_iterator operator- ( difference_type  n) const
inlinenoexcept

Definition at line 553 of file UPtrListI.H.

References n.

◆ operator-() [2/2]

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

Definition at line 561 of file UPtrListI.H.

◆ operator==()

bool operator== ( const const_iterator iter) const
inlinenoexcept

Definition at line 569 of file UPtrListI.H.

◆ operator!=()

bool operator!= ( const const_iterator iter) const
inlinenoexcept

Definition at line 577 of file UPtrListI.H.

◆ operator<()

bool operator< ( const const_iterator iter) const
inlinenoexcept

Definition at line 585 of file UPtrListI.H.

◆ operator>()

bool operator> ( const const_iterator iter) const
inlinenoexcept

Definition at line 593 of file UPtrListI.H.

◆ operator<=()

bool operator<= ( const const_iterator iter) const
inlinenoexcept

Definition at line 601 of file UPtrListI.H.

◆ operator>=()

bool operator>= ( const const_iterator iter) const
inlinenoexcept

Definition at line 609 of file UPtrListI.H.


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