OpenFOAM logo
Open Source CFD Toolkit

VectorSpace Class Template Reference

Inheritance diagram for VectorSpace:

Inheritance graph
[legend]
Collaboration diagram for VectorSpace:

Collaboration graph
[legend]
List of all members.

template<class Form, class Cmpt, int nCmpt>
class Foam::VectorSpace< Form, Cmpt, nCmpt >


Public Types

typedef Cmpt cmptType
 Component type.
enum  { dim = 3, nComponents = nCmpt }

Public Member Functions

 VectorSpace ()
 Construct null.
 VectorSpace (Istream &)
 Construct from Istream.
 VectorSpace (const VectorSpace< Form, Cmpt, nCmpt > &)
 Construct as copy.
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 > &)

Member Typedef Documentation

typedef Cmpt cmptType
 

Component type.

Definition at line 88 of file VectorSpace.H.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
dim 
nComponents 

Definition at line 93 of file VectorSpace.H.


Constructor & Destructor Documentation

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]
 

Construct as copy.

Definition at line 51 of file VectorSpaceI.H.


Member Function Documentation

void component (  Cmpt &  ,
const   direction
)  const [inline]
 

Definition at line 103 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 84 of file VectorSpaceI.H.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.

Here is the call graph for this function:

const Cmpt & component (  const   direction  )  const [inline]
 

Definition at line 63 of file VectorSpaceI.H.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.

Here is the call graph for this function:

void operator *= (  const   scalar  )  [inline]
 

Definition at line 220 of file VectorSpaceI.H.

void operator+= (  const VectorSpace< Form, Cmpt, nCmpt > &   )  [inline]
 

Definition at line 200 of file VectorSpaceI.H.

void operator-= (  const VectorSpace< Form, Cmpt, nCmpt > &   )  [inline]
 

Definition at line 210 of file VectorSpaceI.H.

void operator/= (  const   scalar  )  [inline]
 

Definition at line 230 of file VectorSpaceI.H.

void operator= (  const VectorSpace< Form, Cmpt, nCmpt > &   )  [inline]
 

Definition at line 190 of file VectorSpaceI.H.

Cmpt & operator[] (  const   direction  )  [inline]
 

Definition at line 171 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 150 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 125 of file VectorSpaceI.H.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.

Here is the call graph for this function:


Friends And Related Function Documentation

Ostream& operator (  Ostream &  ,
const VectorSpace< Form, Cmpt, nCmpt > & 
)  [friend]
 

Istream& operator>> (  Istream &  ,
VectorSpace< Form, Cmpt, nCmpt > & 
)  [friend]
 


Member Data Documentation

Cmpt v_[nCmpt]
 

The components of this vector space.

Definition at line 103 of file VectorSpace.H.


The documentation for this class was generated from the following files:
For further information go to www.openfoam.org