|
|
|
PackedList Class Template ReferenceInheritance diagram for PackedList:![]() ![]() Detailed Descriptiontemplate<int nBits>
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| PackedList () | |
| Null constructor. | |
| PackedList (const label size) | |
| Construct with given size. Note: initializes intList to 0. | |
| PackedList (const label size, const unsigned int val) | |
| Construct with given size and value for all elements. | |
| PackedList (const PackedList< nBits > &PList) | |
| Copy constructor. | |
| PackedList (const labelList &) | |
| Construct from labelList. | |
| autoPtr< PackedList< nBits > > | clone () const |
| Clone. | |
| void | setSize (const label) |
| Reset size of List. | |
| void | clear () |
| Clear the list, i.e. set size to zero. | |
| void | transfer (PackedList< nBits > &) |
| Transfer the contents of the argument List into this List. | |
| label | size () const |
| Number of packed elements. | |
| unsigned int | get (const label i) const |
| Get value at index I. | |
| void | set (const label i, const unsigned int val) |
| Set value at index I. | |
| unsigned int | operator[] (const label i) const |
| Get value at index i. | |
| inline::Foam::reference | operator[] (const label i) |
| Set value at index i. Returns proxy which does actual operation. | |
| void | operator= (const PackedList< nBits > &) |
| Assignment operator. Takes linear time. | |
| void | operator= (const unsigned int val) |
| Assignment of all entries to the given value. | |
| labelList | operator() () const |
| Return as labelList. | |
| PackedList | ( | ) | [inline] |
| PackedList | ( | const label | size | ) | [inline] |
Construct with given size. Note: initializes intList to 0.
Definition at line 112 of file PackedListI.H.
| PackedList | ( | const label | size, | |
| const unsigned int | val | |||
| ) |
Construct with given size and value for all elements.
| PackedList | ( | const PackedList< nBits > & | PList | ) |
Copy constructor.
| PackedList | ( | const labelList & | ) |
Construct from labelList.
| autoPtr<PackedList<nBits> > clone | ( | ) | const [inline] |
| void setSize | ( | const | label | ) |
| void clear | ( | ) |
| void transfer | ( | PackedList< nBits > & | ) |
| label size | ( | ) | const [inline] |
Number of packed elements.
Reimplemented from UList< unsigned int >.
Definition at line 122 of file PackedListI.H.
| unsigned int get | ( | const label | i | ) | const [inline] |
| void set | ( | const label | i, | |
| const unsigned int | val | |||
| ) | [inline] |
| unsigned int operator[] | ( | const label | i | ) | const [inline] |
Get value at index i.
Reimplemented from UList< unsigned int >.
Definition at line 151 of file PackedListI.H.
| Foam::reference operator[] | ( | const label | i | ) | [inline] |
Set value at index i. Returns proxy which does actual operation.
Reimplemented from UList< unsigned int >.
Definition at line 188 of file PackedListI.H.
| void operator= | ( | const PackedList< nBits > & | ) |
Assignment operator. Takes linear time.
| void operator= | ( | const unsigned int | val | ) | [inline] |
| labelList operator() | ( | ) | const |
Return as labelList.