|
|
|
CompactListList< T > Class Template ReferenceA packed storage unstructured matrix of objects of type <T> using an offset table for access. More...
Collaboration diagram for CompactListList< T >:
![]()
Detailed Descriptiontemplate<class T>
A packed storage unstructured matrix of objects of type <T> using an offset table for access.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CompactListList | ( | ) | [inline] |
| CompactListList | ( | const List< List< T > > & | ll | ) | [inline] |
Construct by converting given List<List<T> >.
Definition at line 23 of file CompactListList.C.
References forAll, k(), and List< T >::setSize().

| CompactListList | ( | const label | nRows, | |
| const label | nData | |||
| ) | [inline] |
Construct given size of offset table (number of rows).
and number of data.
Definition at line 28 of file CompactListListI.H.
| CompactListList | ( | const label | nRows, | |
| const label | nData, | |||
| const T & | t | |||
| ) | [inline] |
Construct given size of offset table (number of rows),.
the number of data and a value for all elements.
Definition at line 40 of file CompactListListI.H.
| CompactListList | ( | const UList< label > & | rowSizes | ) | [inline] |
| CompactListList | ( | const UList< label > & | rowSizes, | |
| const T & | t | |||
| ) | [inline] |
| CompactListList | ( | const Xfer< CompactListList< T > > & | lst | ) | [inline] |
| CompactListList | ( | CompactListList< T > & | lst, | |
| bool | reUse | |||
| ) | [inline] |
Construct as copy or re-use as specified.
Definition at line 100 of file CompactListList.C.
References CompactListList< T >::transfer().

| CompactListList | ( | Istream & | is | ) | [inline] |
| const Foam::CompactListList< T > & null | ( | ) | [inline, static] |
| Foam::autoPtr< Foam::CompactListList< T > > clone | ( | ) | const [inline] |
| Foam::label size | ( | ) | const [inline] |
| bool empty | ( | ) | const [inline] |
Return true if the number of rows is zero.
Definition at line 76 of file CompactListListI.H.
References List< T >::size().

| const Foam::List< Foam::label > & offsets | ( | ) | const [inline] |
Return the offset table.
Definition at line 83 of file CompactListListI.H.
References UList< T >::empty().

| Foam::List< Foam::label > & offsets | ( | ) | [inline] |
| const Foam::List< T > & m | ( | ) | const [inline] |
| Foam::List< T > & m | ( | ) | [inline] |
Return non-const access to the packed matrix of data.
Definition at line 104 of file CompactListListI.H.
| void setSize | ( | const label | nRows | ) | [inline] |
Reset size of CompactListList.
This form only allows contraction of the CompactListList.
Definition at line 113 of file CompactListList.C.
Referenced by CompactListList< T >::operator[](), and CompactListList< T >::resize().

Reset sizes of CompactListList and value for new elements.
Definition at line 149 of file CompactListList.C.
References List< T >::setSize().

Reset size of CompactListList.
Definition at line 161 of file CompactListList.C.
References List< T >::setSize().

| void resize | ( | const label | nRows | ) | [inline] |
Reset size of CompactListList.
This form only allows contraction of the CompactListList.
Definition at line 171 of file CompactListListI.H.
References Foam::xferMove().

Reset size of CompactListList.
Definition at line 179 of file CompactListListI.H.
References CompactListList< T >::setSize().

Reset sizes of CompactListList and value for new elements.
Definition at line 190 of file CompactListListI.H.
References CompactListList< T >::setSize().

Reset size of CompactListList.
Definition at line 201 of file CompactListListI.H.
References CompactListList< T >::setSize().

| void clear | ( | ) | [inline] |
Clear the CompactListList, i.e. set sizes to zero.
Definition at line 192 of file CompactListList.C.
| Foam::labelList sizes | ( | ) | const [inline] |
| void transfer | ( | CompactListList< T > & | a | ) | [inline] |
Transfer the contents of the argument CompactListList.
into this CompactListList and annull the argument list.
Definition at line 200 of file CompactListList.C.
References List< T >::clear().
Referenced by CompactListList< T >::CompactListList().


| Foam::Xfer< Foam::CompactListList< T > > xfer | ( | ) | [inline] |
Transfer the contents to the Xfer container.
Definition at line 164 of file CompactListListI.H.
References CompactListList< T >::index().

| Foam::label index | ( | const label | row, | |
| const label | col | |||
| ) | const [inline] |
Return index into m.
Definition at line 112 of file CompactListListI.H.
Referenced by CompactListList< T >::xfer().

| Foam::label whichRow | ( | const label | index | ) | const [inline] |
| Foam::label whichColumn | ( | const label | row, | |
| const label | index | |||
| ) | const [inline] |
| Foam::UList< T > operator[] | ( | const label | i | ) | [inline] |
Return subscript-checked row as UList.
Definition at line 211 of file CompactListListI.H.
References CompactListList< T >::setSize().

| const Foam::UList< T > operator[] | ( | const label | i | ) | const [inline] |
| Foam::List< Foam::List< T > > operator() | ( | ) | const [inline] |
Definition at line 210 of file CompactListList.C.
References List< T >::transfer().

| void operator= | ( | const T & | t | ) | [inline] |
| Istream& operator>> | ( | Istream & | , | |
| CompactListList< T > & | ||||
| ) | [friend] |
Read CompactListList from Istream, discarding contents.
of existing CompactListList.
| Ostream& operator | ( | Ostream & | , | |
| const CompactListList< T > & | ||||
| ) | [friend] |