44 SubList<Type>(list, list.size())
64 const label startIndex
67 SubList<Type>(list, subSize, startIndex)
99 return NullObjectRef<SubField<Type>>();
110 return (
reinterpret_cast<const Field<Type>&
>(*
this)).component(d);
117 return (
reinterpret_cast<const Field<Type>&
>(*
this)).T();
145 template<
class Form, Foam::direction Ncmpts>
153 this->operator[](i) = rhs[i];
161 return *
reinterpret_cast<const Field<Type>*
>(
this);
#define forAll(list, i)
Loop across all elements in list.
Pre-declare SubField and related Field type.
Pre-declare related SubField type.
static const SubField< Type > & null()
Return a null SubField.
void operator=(const SubField< Type > &)
Assignment via UList operator. Takes linear time.
tmp< Field< Type > > T() const
Return the field transpose (only defined for second rank tensors)
SubField(const SubList< Type > &)
Construct from a SubList.
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
void operator=(const SubList< T > &)
Assignment of all entries to the given sub-list.
Reference counter for various OpenFOAM components.
A class for managing temporary objects.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.