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

Friends

class const_iterator
 

Detailed Description

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

Random-access iterator with non-const access.

Definition at line 226 of file UPtrList.H.

Member Typedef Documentation

◆ iterator_category

using iterator_category = std::random_access_iterator_tag

Definition at line 232 of file UPtrList.H.

◆ value_type

using value_type = T

Definition at line 233 of file UPtrList.H.

◆ difference_type

Definition at line 234 of file UPtrList.H.

◆ pointer

using pointer = T*

Definition at line 235 of file UPtrList.H.

◆ reference

using reference = T&

Definition at line 236 of file UPtrList.H.

Constructor & Destructor Documentation

◆ iterator()

iterator ( T **  ptr)
inline

Construct for a given entry.

Definition at line 241 of file UPtrListI.H.

Member Function Documentation

◆ get()

T * get ( ) const
inline

Return pointer, can be nullptr.

Definition at line 248 of file UPtrListI.H.

◆ operator==()

bool operator== ( const iterator iter) const
inline

Definition at line 255 of file UPtrListI.H.

◆ operator!=()

bool operator!= ( const iterator iter) const
inline

Definition at line 262 of file UPtrListI.H.

◆ operator->()

T * operator-> ( ) const
inline

Definition at line 269 of file UPtrListI.H.

◆ operator*()

T & operator* ( ) const
inline

Definition at line 276 of file UPtrListI.H.

◆ operator()()

T & operator() ( ) const
inline

Definition at line 283 of file UPtrListI.H.

◆ operator++() [1/2]

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

Definition at line 291 of file UPtrListI.H.

◆ operator++() [2/2]

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

Definition at line 300 of file UPtrListI.H.

◆ operator--() [1/2]

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

Definition at line 310 of file UPtrListI.H.

◆ operator--() [2/2]

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

Definition at line 319 of file UPtrListI.H.

◆ operator+=()

Definition at line 329 of file UPtrListI.H.

References n.

◆ operator-=()

Definition at line 338 of file UPtrListI.H.

References n.

◆ operator+()

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

Definition at line 347 of file UPtrListI.H.

References n.

◆ operator-() [1/2]

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

Definition at line 355 of file UPtrListI.H.

References n.

◆ operator-() [2/2]

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

Definition at line 363 of file UPtrListI.H.

◆ operator[]()

T & operator[] ( difference_type  n) const
inline

Definition at line 370 of file UPtrListI.H.

References n.

◆ operator<()

bool operator< ( const iterator iter) const
inline

Definition at line 377 of file UPtrListI.H.

◆ operator>()

bool operator> ( const iterator iter) const
inline

Definition at line 384 of file UPtrListI.H.

◆ operator<=()

bool operator<= ( const iterator iter) const
inline

Definition at line 391 of file UPtrListI.H.

◆ operator>=()

bool operator>= ( const iterator iter) const
inline

Definition at line 398 of file UPtrListI.H.

Friends And Related Function Documentation

◆ const_iterator

friend class const_iterator
friend

Definition at line 237 of file UPtrList.H.


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