Internally used base for iterator and const_iterator. More...
Public Types | |
using | list_type = typename std::conditional< Const, const UPtrList< T >, UPtrList< T > >::type |
The list container type. More... | |
Public Member Functions | |
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... | |
template<bool Any> | |
bool | operator== (const Iterator< Any > &iter) const noexcept |
Compare hash-entry element pointers. More... | |
template<bool Any> | |
bool | operator!= (const Iterator< Any > &iter) const noexcept |
Protected Member Functions | |
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... | |
template<bool Any> | |
operator const Iterator< Any > & () const | |
Permit explicit cast to the other (const/non-const) iterator. More... | |
Protected Attributes | |
list_type * | list_ |
The parent being iterated. More... | |
label | pos_ |
The position within the list. More... | |
Friends | |
class | UPtrList |
Internally used base for iterator and const_iterator.
The iterator base for UPtrList (internal use only).
Iterates non-nullptr entries.
Definition at line 511 of file UPtrList.H.
The list container type.
Definition at line 545 of file UPtrList.H.
|
inlineprotectednoexcept |
Default construct. Also the same as the end iterator.
Definition at line 300 of file UPtrListI.H.
Construct begin iterator.
Definition at line 310 of file UPtrListI.H.
|
inlineprotected |
Increment to the next non-null position.
Definition at line 326 of file UPtrListI.H.
Permit explicit cast to the other (const/non-const) iterator.
Definition at line 592 of file UPtrList.H.
|
inlinenoexcept |
True if iterator points to a non-null entry.
Definition at line 605 of file UPtrList.H.
Referenced by UPtrList< T >::iterator::get().
|
inlinenoexcept |
The iterator position/index within the list.
Definition at line 610 of file UPtrList.H.
Compare hash-entry element pointers.
Independent of const/non-const access
Definition at line 618 of file UPtrList.H.
|
inlinenoexcept |
Definition at line 624 of file UPtrList.H.
|
friend |
Definition at line 565 of file UPtrList.H.
|
protected |
The parent being iterated.
Uses pointer for default copy/assignment
Definition at line 557 of file UPtrList.H.
Referenced by UPtrList< T >::iterator::get(), and UPtrList< T >::Iterator< true >::good().
|
protected |
The position within the list.
Definition at line 562 of file UPtrList.H.
Referenced by UPtrList< T >::iterator::get(), UPtrList< T >::Iterator< true >::good(), UPtrList< T >::Iterator< true >::key(), UPtrList< T >::Iterator< true >::operator!=(), and UPtrList< T >::Iterator< true >::operator==().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.