39 UList<T>(
const_cast<T*
>(list.cdata()), list.size())
61 UList<
T>(const_cast<
T*>(list.cdata()), len)
77 UList<
T>(const_cast<
T*>(list.cdata() + start), len)
164 const_cast<T*
>(list.
cdata() + start),
188 const_cast<T*
>(list.
cdata() + clamped.start()),
A 1D vector of objects of type <T> with a fixed length <N>.
Base for lists with indirect addressing, templated on the list contents type and the addressing type....
IntType start() const noexcept
The (inclusive) lower value of the range.
IntType size() const noexcept
The size of the range.
A non-owning sub-view of a List (allocated or unallocated storage).
void operator=(const SubList< T > &list)
Copy assign entries (deep copy) from given sub-list. Sizes must match!
UList< T > & reset(std::nullptr_t) noexcept
Reset to zero-sized and nullptr.
SubList() noexcept=default
Default construct, zero-sized and nullptr.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void shallowCopy(T *__restrict__ ptr, const label len) noexcept
Copy the pointer and size.
void deepCopy(const UList< T > &list)
Copy elements of the given UList. Sizes must match!
UList(const UList< T > &) noexcept=default
Copy construct, shallow copy.
const T * cdata() const noexcept
Return pointer to the underlying array serving as data storage.
void checkSize(const label size) const
Check size is within valid range [0,size].
void size(const label n)
Older name for setAddressableSize.
void checkRange(const label start, const label len) const
Check that start and length define a valid range.
UList< T > & operator=(const UList< T > &)=delete
No copy assignment (default: shallow copy).
A range or interval of labels defined by a start and a size.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)