39 UList<
T>(const_cast<
T*>(list.cdata()), list.size())
50 UList<
T>(const_cast<
T*>(list.cdata()), static_cast<label>(
N))
61 UList<
T>(const_cast<
T*>(list.cdata()), subSize)
74 const label startIndex
77 UList<
T>(const_cast<
T*>(list.cdata() + startIndex), subSize)
118 return NullObjectRef<SubList<T>>();
127 return *
reinterpret_cast<const List<T>*
>(
this);
A 1D vector of objects of type <T> with a fixed length <N>.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A range or interval of labels defined by a start and a size.
SubList() noexcept=default
Default construct, zero-sized and nullptr.
Base for lists with indirect addressing, templated on the list contents type and the addressing type...
void operator=(const SubList< T > &list)
Copy assign entries from given sub-list. Sizes must match!
A List obtained as a section of another List.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
const Vector< label > N(dict.get< Vector< label >>("N"))
void checkRange(const label start, const label len) const
Check that start and length define a valid range.
static const SubList< T > & null()
Return a null SubList.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
void checkSize(const label size) const
Check size is within valid range [0,size].
static constexpr const zero Zero
Global zero (0)