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