|
|
|
CompactListList Class Template ReferenceList of all members.Detailed Descriptiontemplate<class T>
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| CompactListList () | |
| Null constructor. | |
| CompactListList (const List< List< T > > &) | |
| Construct by converting given List<List<T> >. | |
| CompactListList (const label nRows, const label nData) | |
| Construct given size of offset table (number of rows). | |
| CompactListList (const label nRows, const label nData, const T &) | |
| Construct given size of offset table (number of rows),. | |
| CompactListList (const UList< label > &rowSizes) | |
| Construct given list of row-sizes. | |
| CompactListList (const UList< label > &rowSizes, const T &) | |
| Construct given list of row-sizes. | |
| CompactListList (CompactListList< T > &, bool reUse) | |
| Construct as copy or re-use as specified. | |
| CompactListList (Istream &) | |
| Construct from Istream. | |
| autoPtr< CompactListList< T > > | clone () const |
| Clone. | |
| label | size () const |
| Return the primary size, i.e. the number of rows. | |
| const List< label > & | offsets () const |
| Return the offset table. | |
| List< label > & | offsets () |
| Return non-const access to the offset table. | |
| const List< T > & | m () const |
| Return the packed matrix of data. | |
| List< T > & | m () |
| Return non-const access to the packed matrix of data. | |
| void | setSize (const label nRows) |
| Reset size of CompactListList. | |
| void | setSize (const label nRows, const label nData) |
| Reset size of CompactListList. | |
| void | setSize (const label nRows, const label nData, const T &) |
| Reset sizes of CompactListList and value for new elements. | |
| labelList | sizes () const |
| Return sizes (to be used e.g. for construction). | |
| void | setSize (const UList< label > &rowSizes) |
| Reset size of CompactListList. | |
| void | clear () |
| Clear the CompactListList, i.e. set sizes to zero. | |
| void | transfer (CompactListList< T > &) |
| Transfer the contents of the argument CompactListList. | |
| label | index (const label row, const label col) const |
| Return index into m. | |
| label | whichRow (const label index) const |
| Get row for index into m. | |
| label | whichColumn (const label row, const label index) const |
| Get column index (j) given above row. | |
| UList< T > | operator[] (const label i) |
| Return subscript-checked row as UList. | |
| const UList< T > | operator[] (const label i) const |
| Return const subscript-checked row as UList. | |
| T & | operator() (const label i, const label j) |
| Return subscript-checked element. | |
| const T & | operator() (const label i, const label j) const |
| Return const subscript-checked element. | |
| List< List< T > > | operator() () const |
| Return as List<List<T> >. | |
| void | operator= (const T &) |
| Assignment of all entries to the given value. | |
Static Public Member Functions | |
| static CompactListList< T > & | null () |
| Return a null CompactListList. | |
Friends | |
| Istream & | operator>> (Istream &, CompactListList< T > &) |
| Read CompactListList from Istream, discarding contents. | |
| Ostream & | operator (Ostream &, const CompactListList< T > &) |
| CompactListList | ( | ) | [inline] |
| CompactListList | ( | const List< List< T > > & | ) |
Construct by converting given List<List<T> >.
| CompactListList | ( | const label | nRows, | |
| const label | nData | |||
| ) | [inline] |
Construct given size of offset table (number of rows).
and number of data.
Definition at line 45 of file CompactListListI.H.
| CompactListList | ( | const label | nRows, | |
| const label | nData, | |||
| const T & | ||||
| ) | [inline] |
Construct given size of offset table (number of rows),.
the number of data and a value for all elements.
Definition at line 54 of file CompactListListI.H.
| CompactListList | ( | const UList< label > & | rowSizes | ) |
Construct given list of row-sizes.
| CompactListList | ( | const UList< label > & | rowSizes, | |
| const T & | ||||
| ) |
Construct given list of row-sizes.
| CompactListList | ( | CompactListList< T > & | , | |
| bool | reUse | |||
| ) |
Construct as copy or re-use as specified.
| CompactListList | ( | Istream & | ) |
Construct from Istream.
| autoPtr< CompactListList< T > > clone | ( | ) | const [inline] |
| static CompactListList<T>& null | ( | ) | [static] |
Return a null CompactListList.
| label size | ( | ) | const [inline] |
| const List< T > & m | ( | ) | const [inline] |
| List< T > & m | ( | ) | [inline] |
Return non-const access to the packed matrix of data.
Definition at line 99 of file CompactListListI.H.
| void setSize | ( | const label | nRows | ) |
Reset size of CompactListList.
This form only allows contraction of the CompactListList.
Reset size of CompactListList.
Reset sizes of CompactListList and value for new elements.
| labelList sizes | ( | ) | const |
Return sizes (to be used e.g. for construction).
Reset size of CompactListList.
| void clear | ( | ) |
Clear the CompactListList, i.e. set sizes to zero.
| void transfer | ( | CompactListList< T > & | ) |
Transfer the contents of the argument CompactListList.
into this CompactListList and annull the argument list.
| void operator= | ( | const T & | ) | [inline] |
| Istream& operator>> | ( | Istream & | , | |
| CompactListList< T > & | ||||
| ) | [friend] |
Read CompactListList from Istream, discarding contents.
of existing CompactListList.
| Ostream& operator | ( | Ostream & | , | |
| const CompactListList< T > & | ||||
| ) | [friend] |