38 #ifndef Foam_SubList_H 39 #define Foam_SubList_H 74 return NullObjectRef<SubList<T>>();
176 return *
reinterpret_cast<const List<T>*
>(
this);
185 inline void operator=(
const UList<T>& list);
189 inline void operator=(
const IndirectListBase<T, Addr>& list);
222 len = (this->size() -
pos);
224 return SubList<Type>(*
this, len,
pos);
234 len = (this->size() -
pos);
236 return SubList<Type>(*
this, len,
pos);
244 return SubList<Type>(*
this,
range);
SubList< label > labelSubList
A SubList of labels.
A 1D vector of objects of type <T> with a fixed length <N>.
SubList< char > charSubList
A SubList of chars.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
friend class SubList< T >
Declare friendship with the SubList class.
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.
void operator=(const SubList< T > &list)
Copy assign entries (deep copy) from given sub-list. Sizes must match!
dimensionedScalar pos(const dimensionedScalar &ds)
A non-owning sub-view of a List (allocated or unallocated storage).
SubList< T > slice(const label pos, label len=-1)
Return SubList slice (non-const access) - no range checking.
static const SubList< T > & null() noexcept
Return a null SubList (reference to a nullObject). Behaves like an empty SubList. ...
#define FOAM_DEPRECATED_STRICTER(since, replacement)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const Vector< label > N(dict.get< Vector< label >>("N"))
constexpr UList() noexcept
Default construct, zero-sized and nullptr.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
SubList< bool > boolSubList
A SubList of bools.