Forward iterator with const access. More...
Public Types | |
using | pointer = const T * |
using | reference = const T & |
Public Types inherited from UPtrList< T >::Iterator< true > | |
using | list_type = typename std::conditional< Const, const UPtrList< T >, UPtrList< T > >::type |
The list container type. More... | |
Public Member Functions | |
const_iterator ()=default | |
Default construct (end iterator) More... | |
const_iterator (const const_iterator &)=default | |
Copy construct. More... | |
const_iterator & | operator= (const const_iterator &)=default |
Copy assignment. More... | |
template<bool Any> | |
const_iterator (const Iterator< Any > &iter) | |
Copy construct from any access type. More... | |
const_iterator (const iterator &iter) | |
Implicit conversion from dissimilar access type. More... | |
pointer | get () const |
Pointer to the referenced object (failsafe) More... | |
reference | val () const |
Reference to the object. More... | |
pointer | operator-> () const |
Pointer to the referenced object. More... | |
reference | operator* () const |
Reference to the object. More... | |
reference | operator() () const |
Legacy call operator: reference to the object. More... | |
const_iterator & | operator++ () |
Move to the next non-nullptr entry. More... | |
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. More... | |
label | key () const noexcept |
The iterator position/index within the list. More... | |
bool | operator== (const Iterator< Any > &iter) const noexcept |
Compare hash-entry element pointers. More... | |
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. More... | |
Iterator (list_type *list) | |
Construct begin iterator. More... | |
void | increment () |
Increment to the next non-null position. More... | |
operator const Iterator< Any > & () const | |
Permit explicit cast to the other (const/non-const) iterator. More... | |
Protected Attributes inherited from UPtrList< T >::Iterator< true > | |
list_type * | list_ |
The parent being iterated. More... | |
label | pos_ |
The position within the list. More... | |
Forward iterator with const access.
Definition at line 711 of file UPtrList.H.
Definition at line 716 of file UPtrList.H.
Definition at line 717 of file UPtrList.H.
|
default |
Default construct (end iterator)
|
default |
Copy construct.
|
inline |
Copy construct from any access type.
Definition at line 744 of file UPtrList.H.
|
inline |
Implicit conversion from dissimilar access type.
Definition at line 752 of file UPtrList.H.
|
default |
Copy assignment.
|
inline |
Pointer to the referenced object (failsafe)
Definition at line 380 of file UPtrListI.H.
|
inline |
Reference to the object.
Definition at line 387 of file UPtrListI.H.
Referenced by UPtrList< T >::const_iterator::operator()(), and UPtrList< T >::const_iterator::operator*().
Pointer to the referenced object.
Definition at line 773 of file UPtrList.H.
Reference to the object.
Definition at line 778 of file UPtrList.H.
References UPtrList< T >::const_iterator::val().
Legacy call operator: reference to the object.
Definition at line 783 of file UPtrList.H.
References UPtrList< T >::const_iterator::val().
|
inline |
Move to the next non-nullptr entry.
Definition at line 395 of file UPtrListI.H.
|
inline |
Definition at line 404 of file UPtrListI.H.