Forward iterator with const access. More...
#include <UPtrList.H>


Public Types | |
| using | pointer = const T* |
| using | reference = const T& |
| Public Types inherited from UPtrList< T >::Iterator< true > | |
| using | list_type |
| The list container type. | |
Public Member Functions | |
| const_iterator ()=default | |
| Default construct (end iterator). | |
| const_iterator (const const_iterator &)=default | |
| Copy construct. | |
| const_iterator & | operator= (const const_iterator &)=default |
| Copy assignment. | |
| template<bool Any> | |
| const_iterator (const Iterator< Any > &iter) | |
| Copy construct from any access type. | |
| const_iterator (const iterator &iter) | |
| Implicit conversion from dissimilar access type. | |
| pointer | get () const |
| Pointer to the referenced object (failsafe). | |
| reference | val () const |
| Reference to the object. | |
| pointer | operator-> () const |
| Pointer to the referenced object. | |
| reference | operator* () const |
| Reference to the object. | |
| reference | operator() () const |
| Legacy call operator: reference to the object. | |
| const_iterator & | operator++ () |
| Move to the next non-nullptr entry. | |
| const_iterator | operator++ (int) |
| Public Member Functions inherited from UPtrList< T >::Iterator< true > | |
| bool | good () const noexcept |
| True if iterator points to a non-null entry. | |
| label | key () const noexcept |
| The iterator position/index within the list. | |
| bool | operator== (const Iterator< Any > &iter) const noexcept |
| Compare hash-entry element pointers. | |
| bool | operator!= (const Iterator< Any > &iter) const noexcept |
Additional Inherited Members | |
| Protected Member Functions inherited from UPtrList< T >::Iterator< true > | |
| constexpr | Iterator () noexcept |
| Default construct. Also the same as the end iterator. | |
| void | increment () |
| Increment to the next non-null position. | |
| operator const Iterator< Any > & () const | |
| Permit explicit cast to the other (const/non-const) iterator. | |
| Protected Attributes inherited from UPtrList< T >::Iterator< true > | |
| list_type * | list_ |
| The parent being iterated. | |
| label | pos_ |
| The position within the list. | |
Forward iterator with const access.
Definition at line 713 of file UPtrList.H.
Definition at line 718 of file UPtrList.H.
Definition at line 719 of file UPtrList.H.
|
default |
Default construct (end iterator).
Referenced by const_iterator(), const_iterator(), operator++(), and operator=().

|
default |
Copy construct from any access type.
Definition at line 746 of file UPtrList.H.
References UPtrList< T >::Iterator< true >::Iterator().

Implicit conversion from dissimilar access type.
Definition at line 754 of file UPtrList.H.
References const_iterator().

|
default |
Pointer to the referenced object (failsafe).
Definition at line 380 of file UPtrListI.H.
References UPtrList< T >::Iterator< true >::good(), UPtrList< T >::Iterator< true >::list_, UPtrList< T >::Iterator< true >::pos_, and Foam::T().
Referenced by operator->().


Reference to the object.
Definition at line 387 of file UPtrListI.H.
References UPtrList< T >::Iterator< true >::list_, UPtrList< T >::Iterator< true >::pos_, and Foam::T().
Referenced by operator()(), and operator*().


Pointer to the referenced object.
Definition at line 775 of file UPtrList.H.
References get().

Reference to the object.
Definition at line 780 of file UPtrList.H.
References val().

Legacy call operator: reference to the object.
Definition at line 785 of file UPtrList.H.
References val().

|
inline |
Move to the next non-nullptr entry.
Definition at line 395 of file UPtrListI.H.
References UPtrList< T >::Iterator< true >::increment().

|
inline |
Definition at line 404 of file UPtrListI.H.
References const_iterator(), and UPtrList< T >::Iterator< true >::increment().
