177 return *
reinterpret_cast<const List<T>*
>(
this);
245 return SubList<Type>(*
this,
range);
253 return SubList<Type>(*
this,
range);
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....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A non-owning sub-view of a List (allocated or unallocated storage).
void operator=(Foam::zero)
Assign all entries to zero.
void operator=(const SubList< T > &list)
Copy assign entries (deep copy) from given sub-list. Sizes must match!
void operator=(const UList< T > &list)
Copy assign entries (deep copy) from given list. Sizes must match!
UList< bool > & reset(std::nullptr_t) noexcept
void operator=(const T &val)
Assign all entries to the given value.
SubList() noexcept=default
Default construct, zero-sized and nullptr.
static const SubList< T > & null() noexcept
Return a null SubList (reference to a nullObject). Behaves like an empty SubList.
void operator=(const IndirectListBase< T, Addr > &list)
Copy assign entries from given indirect list. Sizes must match!
UList(const UList< T > &) noexcept=default
Copy construct, shallow copy.
constexpr UList() noexcept
Default construct, zero-sized and nullptr.
SubList< T > slice(const label pos, label len=-1)
Return SubList slice (non-const access) - no range checking.
void size(const label n)
Older name for setAddressableSize.
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 ...
dimensionedScalar pos(const dimensionedScalar &ds)
const T & NullObjectRef() noexcept
Const reference (of type T) to the nullObject.
SubList< bool > boolSubList
A SubList of bools.
SubList< char > charSubList
A SubList of chars.
SubList< label > labelSubList
A SubList of labels.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
#define FOAM_DEPRECATED_STRICTER(since, replacement)
const Vector< label > N(dict.get< Vector< label > >("N"))