46 SubList<Type>(list, list.size())
66 const label startIndex
69 SubList<Type>(list, subSize, startIndex)
105 return (
reinterpret_cast<const Field<Type>&
>(*
this)).component(d);
112 return (
reinterpret_cast<const Field<Type>&
>(*
this)).T();
153 #define COMPUTED_ASSIGNMENT(TYPE, op) \
155 template<class Type> \
156 void Foam::SubField<Type>::operator op(const UList<TYPE>& f) \
158 TFOR_ALL_F_OP_F(Type, *this, op, TYPE, f) \
161 template<class Type> \
162 void Foam::SubField<Type>::operator op(const tmp<Field<TYPE>>& tf) \
168 template<class Type> \
169 void Foam::SubField<Type>::operator op(const TYPE& t) \
171 TFOR_ALL_F_OP_S(Type, *this, op, TYPE, t) \
179 #undef COMPUTED_ASSIGNMENT
183 template<
class Form, Foam::direction Ncmpts>
191 this->operator[](i) = rhs[i];
#define COMPUTED_ASSIGNMENT(TYPE, op)
#define forAll(list, i)
Loop across all elements in list.
Pre-declare SubField and related Field type.
Pre-declare related SubField type.
void operator=(const SubField< Type > &)
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.
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.