UPtrList< T >::iterator Class Reference

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

Public Types

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

Public Member Functions

 iterator (T **ptr) noexcept
 Construct for a given entry. 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
 
iteratoroperator++ () noexcept
 
iterator operator++ (int) noexcept
 
iteratoroperator-- () noexcept
 
iterator operator-- (int) noexcept
 
iteratoroperator+= (difference_type n) noexcept
 
iteratoroperator-= (difference_type n) noexcept
 
iterator operator+ (difference_type n) const noexcept
 
iterator operator- (difference_type n) const noexcept
 
difference_type operator- (const iterator &iter) const noexcept
 
bool operator== (const iterator &iter) const noexcept
 
bool operator!= (const iterator &iter) const noexcept
 
bool operator< (const iterator &iter) const noexcept
 
bool operator> (const iterator &iter) const noexcept
 
bool operator<= (const iterator &iter) const noexcept
 
bool operator>= (const iterator &iter) const noexcept
 

Friends

class const_iterator
 

Detailed Description

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

Random-access iterator with non-const access.

Definition at line 241 of file UPtrList.H.

Member Typedef Documentation

◆ iterator_category

using iterator_category = std::random_access_iterator_tag

Definition at line 248 of file UPtrList.H.

◆ value_type

using value_type = T

Definition at line 249 of file UPtrList.H.

◆ difference_type

using difference_type = label

Definition at line 250 of file UPtrList.H.

◆ pointer

using pointer = T*

Definition at line 251 of file UPtrList.H.

◆ reference

using reference = T&

Definition at line 252 of file UPtrList.H.

Constructor & Destructor Documentation

◆ iterator()

iterator ( T **  ptr)
inlinenoexcept

Construct for a given entry.

Definition at line 258 of file UPtrListI.H.

Member Function Documentation

◆ get()

T * get ( ) const
inline

Return pointer, can be nullptr.

Definition at line 265 of file UPtrListI.H.

◆ operator->()

T * operator-> ( ) const
inline

Definition at line 272 of file UPtrListI.H.

◆ operator*()

T & operator* ( ) const
inline

Definition at line 279 of file UPtrListI.H.

Referenced by UPtrList< T >::iterator::operator()(), and UPtrList< T >::const_iterator::operator()().

Here is the caller graph for this function:

◆ operator()()

reference operator() ( ) const
inline

Definition at line 268 of file UPtrList.H.

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

Here is the call graph for this function:

◆ operator[]()

T & operator[] ( difference_type  n) const
inline

Definition at line 286 of file UPtrListI.H.

References n.

◆ operator++() [1/2]

Foam::UPtrList< T >::iterator & operator++ ( )
inlinenoexcept

Definition at line 293 of file UPtrListI.H.

◆ operator++() [2/2]

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

Definition at line 302 of file UPtrListI.H.

◆ operator--() [1/2]

Foam::UPtrList< T >::iterator & operator-- ( )
inlinenoexcept

Definition at line 312 of file UPtrListI.H.

◆ operator--() [2/2]

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

Definition at line 321 of file UPtrListI.H.

◆ operator+=()

Foam::UPtrList< T >::iterator & operator+= ( difference_type  n)
inlinenoexcept

Definition at line 331 of file UPtrListI.H.

References n.

◆ operator-=()

Foam::UPtrList< T >::iterator & operator-= ( difference_type  n)
inlinenoexcept

Definition at line 340 of file UPtrListI.H.

References n.

◆ operator+()

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

Definition at line 349 of file UPtrListI.H.

References n.

◆ operator-() [1/2]

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

Definition at line 357 of file UPtrListI.H.

References n.

◆ operator-() [2/2]

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

Definition at line 366 of file UPtrListI.H.

◆ operator==()

bool operator== ( const iterator iter) const
inlinenoexcept

Definition at line 374 of file UPtrListI.H.

◆ operator!=()

bool operator!= ( const iterator iter) const
inlinenoexcept

Definition at line 382 of file UPtrListI.H.

◆ operator<()

bool operator< ( const iterator iter) const
inlinenoexcept

Definition at line 390 of file UPtrListI.H.

◆ operator>()

bool operator> ( const iterator iter) const
inlinenoexcept

Definition at line 398 of file UPtrListI.H.

◆ operator<=()

bool operator<= ( const iterator iter) const
inlinenoexcept

Definition at line 406 of file UPtrListI.H.

◆ operator>=()

bool operator>= ( const iterator iter) const
inlinenoexcept

Definition at line 414 of file UPtrListI.H.

Friends And Related Function Documentation

◆ const_iterator

friend class const_iterator
friend

Definition at line 253 of file UPtrList.H.


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