|
|
|
iteratorBase Class ReferenceThe iterator base for PackedList. More...
Inheritance diagram for iteratorBase:
![]()
Collaboration diagram for iteratorBase:
![]()
Detailed Descriptiontemplate<unsigned nBits = 1>
The iterator base for PackedList.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| iteratorBase | ( | ) | [inline, protected] |
| iteratorBase | ( | const PackedList * | , | |
| const | label | |||
| ) | [inline, protected] |
Construct from base list and position index.
| unsigned int get | ( | ) | const [inline, protected] |
Get value as unsigned, no range-checking.
Definition at line 129 of file PackedListI.H.
Referenced by iteratorBase::operator=().

| bool set | ( | unsigned int | val | ) | [inline, protected] |
Set value, returning true if changed, no range-checking.
Definition at line 141 of file PackedListI.H.
| bool operator== | ( | const iteratorBase & | iter | ) | const [inline] |
Compare values (not positions).
Reimplemented in iterator, and const_iterator.
Definition at line 169 of file PackedListI.H.
| bool operator!= | ( | const iteratorBase & | iter | ) | const [inline] |
| unsigned int operator= | ( | const iteratorBase & | iter | ) | [inline] |
Assign value, not position.
This allows packed[0] = packed[3] for assigning values
Reimplemented in iterator, and const_iterator.
Definition at line 189 of file PackedListI.H.
| unsigned int operator= | ( | const unsigned int | val | ) | [inline] |
Assign value.
A non-existent entry will be auto-vivified.
Definition at line 199 of file PackedListI.H.
References iteratorBase::get().

| operator unsigned int | ( | ) | const [inline] |
| Foam::Ostream & print | ( | Ostream & | os | ) | const [inline] |
friend class PackedList [friend] |
Definition at line 323 of file PackedList.H.
PackedList* list_ [protected] |
Pointer to original list.
This also lets us use the default bitwise copy/assignment
Definition at line 333 of file PackedList.H.
Referenced by const_iterator::const_iterator().
Element index.
Definition at line 336 of file PackedList.H.
Referenced by const_iterator::const_iterator(), iterator::operator*(), iterator::operator++(), const_iterator::operator++(), iterator::operator--(), and const_iterator::operator--().