|
|
|
VectorSpace Class Template ReferenceInheritance diagram for VectorSpace:![]() ![]() Detailed Descriptiontemplate<class Form, class Cmpt, int nCmpt>
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Types | |
| enum | { dim = 3, nComponents = nCmpt } |
| typedef Cmpt | cmptType |
| Component type. | |
Public Member Functions | |
| VectorSpace () | |
| Construct null. | |
| VectorSpace (Istream &) | |
| Construct from Istream. | |
| VectorSpace (const VectorSpace< Form, Cmpt, nCmpt > &) | |
| Construct as copy. | |
| label | size () const |
| Return the number of elements in the FixedList. | |
| 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) |
Public Attributes | |
| Cmpt | v_ [nCmpt] |
| The components of this vector space. | |
Friends | |
| Istream & | operator>> (Istream &, VectorSpace< Form, Cmpt, nCmpt > &) |
| Ostream & | operator (Ostream &, const VectorSpace< Form, Cmpt, nCmpt > &) |
| typedef Cmpt cmptType |
| anonymous enum |
| VectorSpace | ( | ) | [inline] |
Construct null.
Definition at line 45 of file VectorSpaceI.H.
References VectorSpaceOps::eqOp().
Here is the call graph for this function:

| VectorSpace | ( | Istream & | ) |
Construct from Istream.
| VectorSpace | ( | const VectorSpace< Form, Cmpt, nCmpt > & | ) | [inline] |
| label size | ( | ) | const [inline] |
| const Cmpt & component | ( | const | direction | ) | const [inline] |
Definition at line 70 of file VectorSpaceI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorIn.
Here is the call graph for this function:

| Cmpt & component | ( | const | direction | ) | [inline] |
Definition at line 91 of file VectorSpaceI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorIn.
Here is the call graph for this function:

| void component | ( | Cmpt & | , | |
| const | direction | |||
| ) | const [inline] |
Definition at line 110 of file VectorSpaceI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorIn.
Here is the call graph for this function:

| void replace | ( | const | direction, | |
| const Cmpt & | ||||
| ) | [inline] |
Definition at line 132 of file VectorSpaceI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorIn.
Here is the call graph for this function:

| const Cmpt & operator[] | ( | const | direction | ) | const [inline] |
Definition at line 157 of file VectorSpaceI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorIn.
Here is the call graph for this function:

| Cmpt & operator[] | ( | const | direction | ) | [inline] |
Definition at line 178 of file VectorSpaceI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorIn.
Here is the call graph for this function:

| void operator= | ( | const VectorSpace< Form, Cmpt, nCmpt > & | ) | [inline] |
Definition at line 197 of file VectorSpaceI.H.
| void operator+= | ( | const VectorSpace< Form, Cmpt, nCmpt > & | ) | [inline] |
Definition at line 207 of file VectorSpaceI.H.
| void operator-= | ( | const VectorSpace< Form, Cmpt, nCmpt > & | ) | [inline] |
Definition at line 217 of file VectorSpaceI.H.
| void operator *= | ( | const | scalar | ) | [inline] |
Definition at line 227 of file VectorSpaceI.H.
| void operator/= | ( | const | scalar | ) | [inline] |
Definition at line 237 of file VectorSpaceI.H.
| Istream& operator>> | ( | Istream & | , | |
| VectorSpace< Form, Cmpt, nCmpt > & | ||||
| ) | [friend] |
| Ostream& operator | ( | Ostream & | , | |
| const VectorSpace< Form, Cmpt, nCmpt > & | ||||
| ) | [friend] |
| Cmpt v_[nCmpt] |
The components of this vector space.
Definition at line 103 of file VectorSpace.H.
Referenced by DiagTensor::DiagTensor(), SphericalTensor2D::ii(), SphericalTensor::ii(), SphericalTensor::SphericalTensor(), SphericalTensor2D::SphericalTensor2D(), SymmTensor::SymmTensor(), SymmTensor::T(), Tensor::Tensor(), Tensor2D::Tensor2D(), Vector::Vector(), Vector2D::Vector2D(), Vector2D::x(), Vector::x(), Tensor2D::x(), Tensor::x(), Tensor2D::xx(), Tensor::xx(), SymmTensor::xx(), DiagTensor::xx(), Tensor2D::xy(), Tensor::xy(), SymmTensor::xy(), Tensor::xz(), SymmTensor::xz(), Vector2D::y(), Vector::y(), Tensor2D::y(), Tensor::y(), Tensor2D::yx(), Tensor::yx(), Tensor2D::yy(), Tensor::yy(), SymmTensor::yy(), DiagTensor::yy(), Tensor::yz(), SymmTensor::yz(), Vector::z(), Tensor::z(), Tensor::zx(), Tensor::zy(), Tensor::zz(), SymmTensor::zz(), and DiagTensor::zz().