31 template<
class Container>
35 offsets_(ll.size() + 1),
42 sumSize += ll[i].
size();
43 offsets_[i+1] = sumSize;
69 offsets_(rowSizes.
size() + 1),
76 sumSize += rowSizes[i];
77 offsets_[i+1] = sumSize;
80 m_.setSize(sumSize, t);
95 if (mRows < this->
size())
98 m_.setSize(offsets_[mRows]);
102 else if (mRows > this->
size())
105 <<
"Cannot be used to extend the list from " << offsets_.
size()
106 <<
" to " << mRows <<
nl 107 <<
" Please use one of the other setSize member functions" 136 m_.setSize(nData, t);
151 sumSize += rowSizes[i];
152 offsets_[i+1] = sumSize;
#define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label size() const
Return the primary size, i.e. the number of rows.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void size(const label)
Override size to be inconsistent with allocated storage.
void shallowCopy(const UCompactListList< T > &)
Copy the ULists, but not the underlying data.
label k
Boltzmann constant.
void clear()
Clear the CompactListList, i.e. set sizes to zero.
void transfer(CompactListList< T > &)
Transfer the contents of the argument CompactListList.
CompactListList()
Null constructor.
errorManip< error > abort(error &err)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A packed storage unstructured matrix of objects of type <T> using an offset table for access...
void setSize(const label mRows)
Reset size of CompactListList.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void setSize(const label)
Reset size of List.
Unallocated base class of CompactListList.
label size() const
Return the number of elements in the UList.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.