OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

VectorSpace Class Template Reference

Inheritance diagram for VectorSpace:

Inheritance graph
[legend]
Collaboration diagram for VectorSpace:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Definition at line 82 of file VectorSpace.H.


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 > &)

Member Typedef Documentation

typedef Cmpt cmptType

Component type.

Definition at line 88 of file VectorSpace.H.


Member Enumeration Documentation

anonymous enum

Enumerator:
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

label size (  )  const [inline]

Return the number of elements in the FixedList.

Definition at line 62 of file VectorSpaceI.H.

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.


Friends And Related Function Documentation

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

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


Member Data Documentation


The documentation for this class was generated from the following files: Copyright © 2000-2007 OpenCFD Ltd