A packed storage unstructured matrix of objects of type <T> using an offset table for access. More...
Public Member Functions | |
CompactListList () | |
CompactListList (const List< Container > &) | |
CompactListList (const label mRows, const label nData) | |
CompactListList (const label mRows, const label nData, const T &) | |
CompactListList (const labelUList &rowSizes) | |
CompactListList (const labelUList &rowSizes, const T &) | |
CompactListList (const CompactListList< T, Container > &lst) | |
CompactListList (CompactListList< T, Container > &&lst) | |
CompactListList (CompactListList< T, Container > &list, bool reuse) | |
CompactListList (Istream &) | |
autoPtr< CompactListList< T, Container > > | clone () const |
label | size () const noexcept |
bool | empty () const noexcept |
const List< label > & | offsets () const |
List< label > & | offsets () |
const List< T > & | m () const |
List< T > & | m () |
void | setSize (const label mRows) |
void | setSize (const label mRows, const label nData) |
void | setSize (const label mRows, const label nData, const T &) |
void | setSize (const labelUList &rowSizes) |
void | resize (const label mRows) |
void | resize (const label mRows, const label nData) |
void | resize (const label mRows, const label nData, const T &) |
void | resize (const labelUList &rowSizes) |
void | clear () |
labelList | sizes () const |
void | swap (CompactListList< T, Container > &other) |
void | transfer (CompactListList< T, Container > &list) |
label | index (const label row, const label col) const |
label | whichRow (const label index) const |
label | whichColumn (const label row, const label index) const |
UList< T > | operator[] (const label i) |
const UList< T > | operator[] (const label i) const |
T & | operator() (const label i, const label j) |
const T & | operator() (const label i, const label j) const |
List< Container > | operator() () const |
void | operator= (const T &val) |
void | operator= (const CompactListList< T, Container > &lst) |
void | operator= (CompactListList< T, Container > &&lst) |
Static Public Member Functions | |
static const CompactListList< T, Container > & | null () |
Friends | |
Istream & | operator>> (Istream &, CompactListList< T, Container > &) |
Ostream & | operator (Ostream &, const CompactListList< T, Container > &) |
A packed storage unstructured matrix of objects of type <T> using an offset table for access.
The offset table is the size of the number of rows+1 whose elements are the accumulated sizes of the rows, i.e.
Storage is allocated on free-store during construction.
As a special case a null-constructed CompactListList has an empty offsets_ (instead of size 1).
Definition at line 59 of file CompactListList.H.
|
inline |
Definition at line 28 of file CompactListListI.H.
|
explicit |
|
inline |
Definition at line 36 of file CompactListListI.H.
|
inline |
|
explicit |
Definition at line 57 of file CompactListList.C.
References forAll.
CompactListList | ( | const labelUList & | rowSizes, |
const T & | |||
) |
|
inline |
Definition at line 63 of file CompactListListI.H.
|
inline |
Definition at line 75 of file CompactListListI.H.
|
inline |
Definition at line 85 of file CompactListListI.H.
CompactListList | ( | Istream & | ) |
|
inlinestatic |
Definition at line 113 of file CompactListListI.H.
|
inline |
Definition at line 103 of file CompactListListI.H.
References Foam::New().
|
inlinenoexcept |
Definition at line 120 of file CompactListListI.H.
Referenced by decompositionMethod::calcCellCells().
|
inlinenoexcept |
Definition at line 127 of file CompactListListI.H.
|
inline |
Definition at line 135 of file CompactListListI.H.
Referenced by decompositionMethod::calcCellCells(), metisLikeDecomp::decompose(), decompositionInformation::decompositionInformation(), and globalIndex::get().
|
inline |
Definition at line 142 of file CompactListListI.H.
|
inline |
Definition at line 149 of file CompactListListI.H.
Referenced by decompositionMethod::calcCellCells(), metisLikeDecomp::decompose(), and decompositionInformation::decompositionInformation().
|
inline |
Definition at line 157 of file CompactListListI.H.
void setSize | ( | const label | mRows | ) |
Definition at line 101 of file CompactListList.C.
References Foam::abort(), clear(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.
Referenced by decompositionMethod::calcCellCells().
void setSize | ( | const label | mRows, |
const label | nData | ||
) |
Definition at line 126 of file CompactListList.C.
void setSize | ( | const label | mRows, |
const label | nData, | ||
const T & | |||
) |
void setSize | ( | const labelUList & | rowSizes | ) |
Definition at line 152 of file CompactListList.C.
References forAll, and UList::size().
|
inline |
Definition at line 201 of file CompactListListI.H.
References setSize().
|
inline |
Definition at line 209 of file CompactListListI.H.
References setSize().
|
inline |
|
inline |
Definition at line 232 of file CompactListListI.H.
References setSize().
void clear | ( | ) |
Definition at line 186 of file CompactListList.C.
Foam::labelList sizes | ( | ) | const |
Definition at line 170 of file CompactListList.C.
References forAll.
void swap | ( | CompactListList< T, Container > & | other | ) |
Definition at line 196 of file CompactListList.C.
void transfer | ( | CompactListList< T, Container > & | list | ) |
Definition at line 213 of file CompactListList.C.
References clear().
|
inline |
Definition at line 165 of file CompactListListI.H.
|
inline |
Definition at line 175 of file CompactListListI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and Foam::findLower().
|
inline |
Definition at line 191 of file CompactListListI.H.
|
inline |
Definition at line 244 of file CompactListListI.H.
|
inline |
Definition at line 256 of file CompactListListI.H.
References Foam::T().
Definition at line 271 of file CompactListListI.H.
Definition at line 282 of file CompactListListI.H.
Foam::List< Container > operator() | ( | ) | const |
Definition at line 230 of file CompactListList.C.
References forAll.
Definition at line 292 of file CompactListListI.H.
|
inline |
Definition at line 300 of file CompactListListI.H.
|
inline |
Definition at line 317 of file CompactListListI.H.
|
friend |
|
friend |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.