Go to the documentation of this file.
33 template<
class T,
class Container>
43 sumSize += ll[i].size();
44 offsets_[i+1] = sumSize;
52 const Container& lli = ll[i];
62 template<
class T,
class Container>
68 size_(rowSizes.size()),
69 offsets_(rowSizes.size()+1)
75 sumSize += rowSizes[i];
76 offsets_[i+1] = sumSize;
83 template<
class T,
class Container>
90 size_(rowSizes.size()),
91 offsets_(rowSizes.size()+1)
97 sumSize += rowSizes[i];
98 offsets_[i+1] = sumSize;
107 template<
class T,
class Container>
117 offsets_.setSize(mRows+1);
118 m_.setSize(offsets_[mRows]);
120 else if (mRows > size())
123 <<
"Cannot be used to extend the list from " << offsets_.size()
124 <<
" to " << mRows <<
nl
125 <<
" Please use one of the other setSize member functions"
131 template<
class T,
class Container>
139 offsets_.setSize(mRows+1);
144 template<
class T,
class Container>
153 offsets_.setSize(mRows+1);
154 m_.setSize(nData, t);
158 template<
class T,
class Container>
161 size_ = rowSizes.
size();
162 offsets_.setSize(rowSizes.
size()+1);
168 sumSize += rowSizes[i];
169 offsets_[i+1] = sumSize;
176 template<
class T,
class Container>
181 if (rowSizes.size() > 0)
185 rowSizes[i] = offsets_[i+1] - offsets_[i];
192 template<
class T,
class Container>
201 template<
class T,
class Container>
212 std::swap(size_, other.size_);
213 offsets_.swap(other.offsets_);
218 template<
class T,
class Container>
236 template<
class T,
class Container>
244 ll[i] = Container(
operator[](i));
List< label > labelList
A List of labels.
List< Container > operator()() const
void transfer(CompactListList< T, Container > &list)
A packed storage unstructured matrix of objects of type <T> using an offset table for access.
void setSize(const label mRows)
void setSize(const label n)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
errorManip< error > abort(error &err)
#define FatalErrorInFunction
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void swap(CompactListList< T, Container > &other)
UList< label > labelUList
A UList of labels.