|
|
|
iterator Class ReferenceThe iterator class used for PackedList. More...
Inheritance diagram for iterator:
![]()
Collaboration diagram for iterator:
![]()
Detailed Descriptiontemplate<unsigned nBits = 1>
The iterator class used for PackedList.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| iterator | ( | ) | [inline] |
| iterator | ( | const iteratorBase & | iter | ) | [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 244 of file PackedListI.H.
| iterator | ( | const PackedList * | , | |
| const | label | |||
| ) | [inline] |
Construct from base list and position index.
| bool operator== | ( | const iteratorBase & | iter | ) | const [inline] |
Compare positions (not values).
Reimplemented from iteratorBase.
Definition at line 310 of file PackedListI.H.
| bool operator!= | ( | const iteratorBase & | iter | ) | const [inline] |
| Foam::PackedList< nBits >::iterator & operator= | ( | const iteratorBase & | iter | ) | [inline] |
Assign from iteratorBase, eg iter = packedlist[i].
An out-of-range iterator is assigned end()
Reimplemented from iteratorBase.
Definition at line 352 of file PackedListI.H.
| unsigned int operator* | ( | ) | const [inline] |
Return value.
| unsigned int operator() | ( | ) | const [inline] |
Return value.
| Foam::PackedList< nBits >::iteratorBase & operator* | ( | ) | [inline] |
Return iteratorBase for assigning values.
Definition at line 464 of file PackedListI.H.
References iteratorBase::index_.
| Foam::PackedList< nBits >::iteratorBase & operator() | ( | ) | [inline] |
| Foam::PackedList< nBits >::iterator & operator++ | ( | ) | [inline] |
Definition at line 388 of file PackedListI.H.
| Foam::PackedList< nBits >::iterator operator++ | ( | int | ) | [inline] |
| Foam::PackedList< nBits >::iterator & operator-- | ( | ) | [inline] |
| Foam::PackedList< nBits >::iterator operator-- | ( | int | ) | [inline] |