Pre-declare related SubField type. More...
Public Types | |
typedef pTraits< Type >::cmptType | cmptType |
Component type. More... | |
Public Member Functions | |
SubField (const SubList< Type > &) | |
Construct from a SubList. More... | |
SubField (const UList< Type > &) | |
Construct from a UList<Type>, using the entire size. More... | |
SubField (const UList< Type > &list, const label subSize) | |
Construct from a UList<Type> with a given size. More... | |
SubField (const UList< Type > &list, const label subSize, const label startIndex) | |
Construct from a UList<Type> with a given size and start index. More... | |
SubField (const SubField< Type > &) | |
Construct as copy. More... | |
tmp< Field< cmptType > > | component (const direction) const |
Return a component field of the field. More... | |
tmp< Field< Type > > | T () const |
Return the field transpose (only defined for second rank tensors) More... | |
void | operator= (const SubField< Type > &) |
Assignment via UList operator. Takes linear time. More... | |
operator const Field< Type > & () const | |
Allow cast to a const Field<Type>&. More... | |
Static Public Member Functions | |
static const SubField< Type > & | null () |
Return a null SubField. More... | |
Pre-declare related SubField type.
SubField is a Field obtained as a section of another Field.
Thus it is itself unallocated so that no storage is allocated or deallocated during its use. To achieve this behaviour, SubField is derived from a SubList rather than a List.
Component type.
Definition at line 67 of file SubField.H.
Construct from a UList<Type>, using the entire size.
Construct from a UList<Type> with a given size.
Definition at line 50 of file SubFieldI.H.
Construct from a UList<Type> with a given size and start index.
Definition at line 61 of file SubFieldI.H.
|
inlinestatic |
Return a null SubField.
Definition at line 85 of file SubFieldI.H.
|
inline |
Return a component field of the field.
Definition at line 94 of file SubFieldI.H.
|
inline |
Return the field transpose (only defined for second rank tensors)
Definition at line 103 of file SubFieldI.H.
|
inline |
Assignment via UList operator. Takes linear time.
Definition at line 112 of file SubFieldI.H.
Referenced by SubDimensionedField< Type, GeoMesh >::operator=().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.