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... | |
template<class ListType , class ListListType > | |
static void | setSizeToListList (ListType &offsets, ListType &m, const ListListType &ll) |
Set the sizes to match that of the given list-list. More... | |
template<class ListType , class ListListType > | |
static void | setSizeAndValuesToListList (ListType &offsets, ListType &m, const ListListType &ll) |
Set the sizes and values to match that of the given list-list. More... | |
Friends | |
Ostream & | operator (Ostream &, const UCompactListList< T > &) |
Unallocated base class of CompactListList.
Definition at line 57 of file UCompactListList.H.
|
inline |
Null constructor.
Definition at line 32 of file UCompactListListI.H.
|
inline |
Construct from components.
Definition at line 40 of file UCompactListListI.H.
|
inlinestatic |
Return a null UCompactListList.
Definition at line 55 of file UCompactListListI.H.
|
static |
Set the sizes to match that of the given list-list.
Definition at line 32 of file UCompactListList.C.
References forAll.
Referenced by CompactListList< T >::setSize().
|
static |
Set the sizes and values to match that of the given list-list.
Definition at line 55 of file UCompactListList.C.
Referenced by CompactListList< T >::CompactListList().
|
inline |
Return the primary size, i.e. the number of rows.
Definition at line 62 of file UCompactListListI.H.
Referenced by decompositionMethod::calcCellCells(), and get_num_edges_list().
|
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(), and parMetis::decompose().
|
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(), cellEdgeAddressingData::cellEdgeAddressingData(), and parMetis::decompose().
|
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 106 of file UCompactListListI.H.
Referenced by CompactListList< T >::clear(), CompactListList< label >::CompactListList(), CompactListList< T >::CompactListList(), CompactListList< T >::setSize(), and CompactListList< T >::transfer().
|
inline |
Copy the underlying data.
Definition at line 117 of file UCompactListListI.H.
|
inline |
Return index into m.
Definition at line 128 of file UCompactListListI.H.
|
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 153 of file UCompactListListI.H.
Foam::labelList sizes |
Return sizes (to be used e.g. for construction)
Definition at line 78 of file UCompactListList.C.
References forAll, and List< T >::size().
Referenced by get_num_edges_list().
List<Container> list | ( | ) | const |
Convert to List<Container>
Referenced by decompositionMethod::decompose(), multiLevel::decompose(), renumberMethod::renumber(), CuthillMcKeeRenumber::renumber(), and springRenumber::renumber().
|
inline |
Return subscript-checked row as UList.
Definition at line 166 of file UCompactListListI.H.
|
inline |
Return const subscript-checked row as UList.
Definition at line 178 of file UCompactListListI.H.
References Foam::T().
Return subscript-checked element.
Definition at line 193 of file UCompactListListI.H.
Return const subscript-checked element.
Definition at line 204 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 95 of file UCompactListList.C.
References forAll.
|
friend |