36 return NullObjectRef<SubList<T>>();
70 UList<
T>(const_cast<
T*>(list.cdata()), len)
86 UList<
T>(const_cast<
T*>(list.cdata() + start), len)
173 const_cast<T*>(list.
cdata() + start),
197 const_cast<T*>(list.
cdata() + clamped.start()),
229 return *
reinterpret_cast<const List<T>*
>(
this);
void size(const label n)
Older name for setAddressableSize.
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.
UList< T > & reset(std::nullptr_t) noexcept
Reset to 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...
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].
const T * cdata() const noexcept
Return pointer to the underlying array serving as data storage.