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 |
iterator & | 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) |
![]() | |
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 |
unsigned int | operator= (const iteratorBase &) |
Assign value, not position. More... | |
unsigned int | operator= (const unsigned int val) |
Assign value. More... | |
operator unsigned int () const | |
Conversion operator. More... | |
Ostream & | printInfo (Ostream &) const |
Print information and values. More... | |
bool | writeIfSet (Ostream &os) const |
Private Member Functions | |
iterator (const const_iterator &) | |
Disallow copy constructor from const_iterator. More... | |
void | operator= (const const_iterator &) |
Disallow assignment from const_iterator. More... | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
PackedList * | list_ |
Pointer to original list. More... | |
label | index_ |
Element index. More... | |
The iterator class used for PackedList.
Definition at line 486 of file PackedList.H.
|
private |
Disallow copy constructor from const_iterator.
This would violate const-ness!
|
inline |
Construct null.
Definition at line 400 of file PackedListI.H.
|
inline |
Construct from iterator base, eg iter(packedlist[i])
but also "iterator iter = packedlist[i];" An out-of-range iterator is assigned end()
|
inline |
Construct from base list and position index.
|
private |
Disallow assignment from const_iterator.
This would violate const-ness!
|
inline |
Compare positions (not values)
Definition at line 481 of file PackedListI.H.
|
inline |
Definition at line 491 of file PackedListI.H.
|
inline |
Assign from iteratorBase, eg iter = packedlist[i].
An out-of-range iterator is assigned end()
|
inline |
Return value.
|
inline |
Return value.
|
inline |
Return iteratorBase for assigning values.
Definition at line 633 of file PackedListI.H.
|
inline |
Return iteratorBase for assigning values.
Definition at line 641 of file PackedListI.H.
|
inline |
Definition at line 557 of file PackedListI.H.
|
inline |
Definition at line 575 of file PackedListI.H.
|
inline |
Definition at line 595 of file PackedListI.H.
|
inline |
Definition at line 613 of file PackedListI.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.