37 #ifndef UCompactListList_H
38 #define UCompactListList_H
49 template<
class T>
class UCompactListList;
77 template<
class ListType,
class ListListType>
82 const ListListType& ll
86 template<
class ListType,
class ListListType>
91 const ListListType& ll
112 inline bool empty()
const;
146 template<
class Container = List<T>>
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Unallocated base class of CompactListList.
List< Container > list() const
Convert to List<Container>
const UList< label > & offsets() const
Return the offset table (= size()+1)
const UList< T > & m() const
Return the packed matrix of data.
label size() const
Return the primary size, i.e. the number of rows.
label index(const label row, const label col) const
Return index into m.
bool empty() const
Return true if the number of rows is zero.
T & operator()(const label i, const label j)
Return subscript-checked element.
void operator=(const T &)
Assignment of all entries to the given value.
static void setSizeToListList(ListType &offsets, ListType &m, const ListListType &ll)
Set the sizes to match that of the given list-list.
label whichRow(const label index) const
Get row for index into m.
static void setSizeAndValuesToListList(ListType &offsets, ListType &m, const ListListType &ll)
Set the sizes and values to match that of the given list-list.
labelList sizes() const
Return sizes (to be used e.g. for construction)
UCompactListList()
Null constructor.
label whichColumn(const label row, const label index) const
Get column index (j) given above row.
void shallowCopy(const UCompactListList< T > &)
Copy the ULists, but not the underlying data.
void deepCopy(const UCompactListList< T > &)
Copy the underlying data.
UList< T > operator[](const label i)
Return subscript-checked row as UList.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)