The const_iterator for PackedList. More...
#include <src/OpenFOAM/containers/Lists/PackedList/PackedList.H>
The const_iterator for PackedList.
Definition at line 425 of file PackedList.H.
Public Member Functions | |
const_iterator () | |
Construct null. | |
const_iterator (const iteratorBase &) | |
Construct from iterator base, eg iter(packedlist[i]) | |
const_iterator (const PackedList *, const label) | |
Construct from base list and position index. | |
const_iterator (const iterator &) | |
Construct from iterator. | |
bool | operator== (const iteratorBase &) const |
Compare positions (not values) | |
bool | operator!= (const iteratorBase &) const |
const_iterator & | operator= (const iteratorBase &) |
Assign from iteratorBase or derived. | |
unsigned int | operator* () const |
Return referenced value directly. | |
unsigned int | operator() () const |
Return referenced value directly. | |
const_iterator & | operator++ () |
const_iterator | operator++ (int) |
const_iterator & | operator-- () |
const_iterator | operator-- (int) |
![]() | |
unsigned int | operator= (const unsigned int val) |
Assign value. | |
operator unsigned int () const | |
Conversion operator. | |
Ostream & | print (Ostream &) const |
Print value and information. |
Additional Inherited Members | |
![]() | |
unsigned int | get () const |
Get value as unsigned, no range-checking. | |
bool | set (unsigned int) |
Set value, returning true if changed, no range-checking. | |
iteratorBase () | |
Construct null. | |
iteratorBase (const PackedList *, const label) | |
Construct from base list and position index. | |
![]() | |
PackedList * | list_ |
Pointer to original list. | |
label | index_ |
Element index. |
|
inline |
Construct null.
Definition at line 244 of file PackedListI.H.
|
inline |
Construct from iterator base, eg iter(packedlist[i])
but also "const_iterator iter = packedlist[i];" An out-of-range iterator is assigned cend()
Definition at line 269 of file PackedListI.H.
|
inline |
Construct from base list and position index.
|
inline |
Construct from iterator.
Definition at line 308 of file PackedListI.H.
|
inline |
Compare positions (not values)
Reimplemented from PackedList< nBits >::iteratorBase.
Definition at line 339 of file PackedListI.H.
References PackedList< nBits >::iteratorBase::index_.
|
inline |
Reimplemented from PackedList< nBits >::iteratorBase.
Definition at line 349 of file PackedListI.H.
References PackedList< nBits >::iteratorBase::index_.
|
inline |
Assign from iteratorBase or derived.
eg, iter = packedlist[i] or even iter = list.begin()
Reimplemented from PackedList< nBits >::iteratorBase.
Definition at line 378 of file PackedListI.H.
References PackedList< nBits >::iteratorBase::index_, and PackedList< nBits >::iteratorBase::list_.
|
inline |
Return referenced value directly.
Definition at line 488 of file PackedListI.H.
|
inline |
Return referenced value directly.
Definition at line 496 of file PackedListI.H.
|
inline |
Definition at line 405 of file PackedListI.H.
|
inline |
Definition at line 424 of file PackedListI.H.
|
inline |
Definition at line 443 of file PackedListI.H.
|
inline |
Definition at line 462 of file PackedListI.H.