The iterator class used for PackedList. More...
Public Member Functions | |
iterator () | |
Construct null. More... | |
iterator (const iteratorBase &) | |
Construct from iterator base, eg iter(packedlist[i]) More... | |
iterator (const PackedList *, const label) | |
Construct from base list and position index. More... | |
bool | operator== (const iteratorBase &) const |
Compare positions (not values) More... | |
bool | operator!= (const iteratorBase &) const |
void | operator= (const iteratorBase &) |
Assign from iteratorBase, eg iter = packedlist[i]. More... | |
unsigned int | operator* () const |
Return value. More... | |
unsigned int | operator() () const |
Return value. More... | |
iteratorBase & | operator* () |
Return iteratorBase for assigning values. More... | |
iteratorBase & | operator() () |
Return iteratorBase for assigning values. More... | |
iterator & | operator++ () |
iterator | operator++ (int) |
iterator & | operator-- () |
iterator | operator-- (int) |
Public Member Functions inherited from PackedList< nBits >::iteratorBase | |
iteratorBase (const iteratorBase &)=default | |
Default copy constructor. More... | |
label | key () const |
Return the element index corresponding to the iterator. More... | |
bool | writeIfSet (Ostream &) const |
Write index/value for a non-zero entry. More... | |
bool | operator== (const iteratorBase &) const |
Compare values (not positions) More... | |
bool | operator!= (const iteratorBase &) const |
void | operator= (const iteratorBase &) |
Assign value, not position. More... | |
void | operator= (const unsigned int val) |
Assign value. More... | |
operator unsigned int () const | |
Conversion operator. More... | |
Ostream & | printInfo (Ostream &) const |
Print information and values. More... | |
template<> | |
bool | writeIfSet (Ostream &os) const |
Additional Inherited Members | |
Protected Member Functions inherited from PackedList< nBits >::iteratorBase | |
unsigned int | get () const |
Get value as unsigned, no range-checking. More... | |
bool | set (unsigned int) |
Set value, returning true if changed, no range-checking. More... | |
iteratorBase () | |
Construct null. More... | |
iteratorBase (const PackedList *, const label) | |
Construct from base list and position index. More... | |
Protected Attributes inherited from PackedList< nBits >::iteratorBase | |
PackedList * | list_ |
Pointer to original list. More... | |
label | index_ |
Element index. More... | |
The iterator class used for PackedList.
Definition at line 492 of file PackedList.H.
|
inline |
Construct null.
Definition at line 397 of file PackedListI.H.
Referenced by PackedList< nBits >::const_iterator::const_iterator().
|
inline |
Construct from iterator base, eg iter(packedlist[i])
but also "iterator iter = packedlist[i];" An out-of-range iterator is assigned end()
Definition at line 412 of file PackedListI.H.
References PackedList< nBits >::const_iterator::const_iterator(), PackedList< nBits >::iteratorBase::index_, and PackedList< nBits >::iteratorBase::list_.
|
inline |
Construct from base list and position index.
|
inline |
Compare positions (not values)
Definition at line 478 of file PackedListI.H.
References PackedList< nBits >::iteratorBase::index_.
|
inline |
Definition at line 488 of file PackedListI.H.
References PackedList< nBits >::iteratorBase::index_.
|
inline |
Assign from iteratorBase, eg iter = packedlist[i].
An out-of-range iterator is assigned end()
Definition at line 518 of file PackedListI.H.
References PackedList< nBits >::iteratorBase::index_, and PackedList< nBits >::iteratorBase::list_.
|
inline |
Return value.
|
inline |
Return value.
|
inline |
Return iteratorBase for assigning values.
Definition at line 630 of file PackedListI.H.
|
inline |
Return iteratorBase for assigning values.
Definition at line 638 of file PackedListI.H.
|
inline |
Definition at line 554 of file PackedListI.H.
References PackedList< nBits >::iteratorBase::index_.
|
inline |
Definition at line 572 of file PackedListI.H.
References PackedList< nBits >::iteratorBase::index_.
|
inline |
Definition at line 592 of file PackedListI.H.
References PackedList< nBits >::iteratorBase::index_.
|
inline |
Definition at line 610 of file PackedListI.H.
References PackedList< nBits >::iteratorBase::index_.