Unallocated base class of CompactListList. More...
Public Member Functions | |
UCompactListList () | |
Null constructor. More... | |
UCompactListList (const UList< label > &offsets, const UList< T > &m) | |
Construct from components. More... | |
label | size () const |
Return the primary size, i.e. the number of rows. More... | |
bool | empty () const |
Return true if the number of rows is zero. More... | |
const UList< label > & | offsets () const |
Return the offset table (= size()+1) More... | |
UList< label > & | offsets () |
Return non-const access to the offset table. More... | |
const UList< T > & | m () const |
Return the packed matrix of data. More... | |
UList< T > & | m () |
Return non-const access to the packed matrix of data. More... | |
void | shallowCopy (const UCompactListList< T > &) |
Copy the ULists, but not the underlying data. More... | |
void | deepCopy (const UCompactListList< T > &) |
Copy the underlying data. More... | |
label | index (const label row, const label col) const |
Return index into m. More... | |
label | whichRow (const label index) const |
Get row for index into m. More... | |
label | whichColumn (const label row, const label index) const |
Get column index (j) given above row. More... | |
labelList | sizes () const |
Return sizes (to be used e.g. for construction) More... | |
template<class Container = List<T>> | |
List< Container > | list () const |
Convert to List<Container> More... | |
UList< T > | operator[] (const label i) |
Return subscript-checked row as UList. More... | |
const UList< T > | operator[] (const label i) const |
Return const subscript-checked row as UList. More... | |
T & | operator() (const label i, const label j) |
Return subscript-checked element. More... | |
const T & | operator() (const label i, const label j) const |
Return const subscript-checked element. More... | |
void | operator= (const T &) |
Assignment of all entries to the given value. More... | |
template<class Container > | |
Foam::List< Container > | list () const |
Static Public Member Functions | |
static const UCompactListList< T > & | null () |
Return a null UCompactListList. More... | |
Friends | |
Ostream & | operator (Ostream &, const UCompactListList< T > &) |
Unallocated base class of CompactListList.
|
inline |
Null constructor.
Definition at line 32 of file UCompactListListI.H.
Referenced by UCompactListList< Foam::FvWallInfoData >::UCompactListList().
|
inline |
Construct from components.
Definition at line 41 of file UCompactListListI.H.
|
inlinestatic |
Return a null UCompactListList.
Definition at line 55 of file UCompactListListI.H.
|
inline |
Return the primary size, i.e. the number of rows.
Definition at line 62 of file UCompactListListI.H.
Referenced by decompositionMethod::calcCellCells(), and CompactListList< T >::setSize().
|
inline |
Return true if the number of rows is zero.
Definition at line 69 of file UCompactListListI.H.
|
inline |
Return the offset table (= size()+1)
Definition at line 77 of file UCompactListListI.H.
Referenced by decompositionMethod::calcCellCells().
|
inline |
Return non-const access to the offset table.
Definition at line 84 of file UCompactListListI.H.
|
inline |
Return the packed matrix of data.
Definition at line 91 of file UCompactListListI.H.
Referenced by decompositionMethod::calcCellCells(), and get_edge_list().
|
inline |
Return non-const access to the packed matrix of data.
Definition at line 99 of file UCompactListListI.H.
|
inline |
Copy the ULists, but not the underlying data.
Definition at line 107 of file UCompactListListI.H.
Referenced by CompactListList< T >::clear(), CompactListList< T >::CompactListList(), UCompactListList< Foam::FvWallInfoData >::m(), CompactListList< T >::setSize(), and CompactListList< T >::transfer().
|
inline |
Copy the underlying data.
Definition at line 118 of file UCompactListListI.H.
Referenced by fvMeshDistribute::printCoupleInfo(), and UCompactListList< Foam::FvWallInfoData >::shallowCopy().
|
inline |
Return index into m.
Definition at line 129 of file UCompactListListI.H.
Referenced by UCompactListList< Foam::FvWallInfoData >::deepCopy().
|
inline |
Get row for index into m.
Definition at line 139 of file UCompactListListI.H.
|
inline |
Get column index (j) given above row.
Definition at line 154 of file UCompactListListI.H.
Referenced by UCompactListList< Foam::FvWallInfoData >::whichRow().
Foam::labelList sizes | ( | ) | const |
Return sizes (to be used e.g. for construction)
Definition at line 31 of file UCompactListList.C.
Referenced by get_num_edges_list().
List<Container> list | ( | ) | const |
Convert to List<Container>
Referenced by multiLevelDecomp::decompose(), decompositionMethod::decompose(), CuthillMcKeeRenumber::renumber(), springRenumber::renumber(), and renumberMethod::renumber().
|
inline |
Return subscript-checked row as UList.
Definition at line 167 of file UCompactListListI.H.
|
inline |
Return const subscript-checked row as UList.
Definition at line 179 of file UCompactListListI.H.
Return subscript-checked element.
Definition at line 194 of file UCompactListListI.H.
Return const subscript-checked element.
Definition at line 205 of file UCompactListListI.H.
Assignment of all entries to the given value.
Definition at line 215 of file UCompactListListI.H.
Foam::List<Container> list | ( | ) | const |
Definition at line 48 of file UCompactListList.C.
|
friend |