31 template<
class ListType,
class ListListType>
36 const ListListType& ll
39 offsets.setSize(ll.size() + 1);
45 sumSize += ll[i].size();
46 offsets[i+1] = sumSize;
54 template<
class ListType,
class ListListType>
59 const ListListType& ll
62 setSizeToListList(offsets, m, ll);
82 if (rowSizes.
size() > 0)
86 rowSizes[i] = offsets_[i+1] - offsets_[i];
94 template<
class Container>
101 ll[i] = Container(
operator[](i));
#define forAll(list, i)
Loop across all elements in list.
void size(const label)
Override size to be inconsistent with allocated storage.
List< Container > list() const
Convert to List<Container>
static void setSizeToListList(ListType &offsets, ListType &m, const ListListType &ll)
Set the sizes to match that of the given list-list.
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)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.