Templated vector space. More...
Public Types | |
enum | { dim = 3, nComponents = nCmpt } |
typedef Cmpt | cmptType |
Component type. More... | |
Public Member Functions | |
VectorSpace () | |
Construct null. More... | |
VectorSpace (Istream &) | |
Construct from Istream. More... | |
VectorSpace (const VectorSpace< Form, Cmpt, nCmpt > &) | |
Construct as copy. More... | |
template<class Form2 , class Cmpt2 > | |
VectorSpace (const VectorSpace< Form2, Cmpt2, nCmpt > &) | |
Construct as copy of another VectorSpace type of the same rank. More... | |
label | size () const |
Return the number of elements in the VectorSpace = nCmpt. More... | |
const Cmpt & | component (const direction) const |
Cmpt & | component (const direction) |
void | component (Cmpt &, const direction) const |
void | replace (const direction, const Cmpt &) |
const Cmpt & | operator[] (const direction) const |
Cmpt & | operator[] (const direction) |
void | operator= (const VectorSpace< Form, Cmpt, nCmpt > &) |
void | operator+= (const VectorSpace< Form, Cmpt, nCmpt > &) |
void | operator-= (const VectorSpace< Form, Cmpt, nCmpt > &) |
void | operator*= (const scalar) |
void | operator/= (const scalar) |
Data Fields | |
Cmpt | v_ [nCmpt] |
The components of this vector space. More... | |
Friends | |
Istream & | operator>> (Istream &, VectorSpace< Form, Cmpt, nCmpt > &) |
Ostream & | operator (Ostream &, const VectorSpace< Form, Cmpt, nCmpt > &) |
Templated vector space.
Template arguments are the Form the vector space will be used to create, the type of the elements and the number of elements.
Definition at line 52 of file VectorSpace.H.
typedef Cmpt cmptType |
Component type.
Definition at line 80 of file VectorSpace.H.
anonymous enum |
Enumerator | |
---|---|
dim | Dimensionality of space. |
nComponents | Number of components in this vector space. |
Definition at line 85 of file VectorSpace.H.
|
inline |
Construct null.
Definition at line 39 of file VectorSpaceI.H.
VectorSpace | ( | Istream & | ) |
Construct from Istream.
|
inline |
Construct as copy.
|
inline |
Construct as copy of another VectorSpace type of the same rank.
Definition at line 56 of file VectorSpaceI.H.
|
inline |
Return the number of elements in the VectorSpace = nCmpt.
Definition at line 67 of file VectorSpaceI.H.
|
inline |
Referenced by Foam::polyMeshGenChecks::checkClosedBoundary(), Foam::component(), EulerCoordinateRotation::EulerCoordinateRotation(), cellMDLimitedGrad< Type >::limitFace(), main(), Random::position(), Foam::setComponent(), symmetryPlaneFvPatchField< Type >::snGradTransformDiag(), STARCDCoordinateRotation::STARCDCoordinateRotation(), Random::symmTensor01(), and Random::vector01().
|
inline |
|
inline |
|
inline |
Definition at line 133 of file VectorSpaceI.H.
|
inline |
|
inline |
|
inline |
Definition at line 193 of file VectorSpaceI.H.
|
inline |
Definition at line 203 of file VectorSpaceI.H.
|
inline |
Definition at line 213 of file VectorSpaceI.H.
|
inline |
Definition at line 223 of file VectorSpaceI.H.
|
inline |
Definition at line 233 of file VectorSpaceI.H.
|
friend |
|
friend |
Cmpt v_[nCmpt] |
The components of this vector space.
Definition at line 95 of file VectorSpace.H.
Referenced by Foam::cmptMax(), Foam::cmptMin(), Foam::cmptProduct(), Foam::cmptSum(), Foam::magSqr(), Foam::operator&&(), Foam::operator<(), Foam::operator==(), and Foam::operator>().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.