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

dimensioned Class Template Reference

Inheritance diagram for dimensioned:

Inheritance graph
[legend]
Collaboration diagram for dimensioned:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Type>
class Foam::dimensioned< Type >

Definition at line 72 of file dimensionedType.H.


Public Types

typedef pTraits< Type >::cmptType cmptType
 Component type.

Public Member Functions

 dimensioned (const word &, const dimensionSet &, const Type)
 Construct given a name, a value and its dimensionSet.
 dimensioned (const word &, const dimensioned< Type > &)
 Construct from a dimensioned<Type> changing the name.
 dimensioned (const Type &t)
 Construct given a value (creates dimensionless value).
 dimensioned (Istream &)
 Construct from Istream.
 dimensioned (const word &, Istream &)
 Construct from an Istream with a given name.
 dimensioned (const word &, const dimensionSet &, Istream &)
 Construct from an Istream with a given name and dimensions.
const word & name () const
 Return const reference to name.
word & name ()
 Return non-const reference to name.
const dimensionSet & dimensions () const
 Return const reference to dimensions.
dimensionSet & dimensions ()
 Return non-const reference to dimensions.
const Type & value () const
 Return const reference to value.
Type & value ()
 Return non-const reference to value.
dimensioned< cmptType > component (const direction) const
 Return a component as a dimensioned<cmptType>.
void replace (const direction, const dimensioned< cmptType > &)
 Return a component with a dimensioned<cmptType>.
dimensioned< Type > T () const
 Return transpose.
dimensioned< cmptType > operator[] (const direction) const
 Return a component as a dimensioned<cmptType>.
void operator+= (const dimensioned< Type > &)
void operator-= (const dimensioned< Type > &)
void operator *= (const scalar)
void operator/= (const scalar)

Friends

Istream & operator>> (Istream &, dimensioned< Type > &)
Ostream & operator (Ostream &, const dimensioned< Type > &)

Member Typedef Documentation

typedef pTraits<Type>::cmptType cmptType

Component type.

Definition at line 89 of file dimensionedType.H.


Constructor & Destructor Documentation

dimensioned ( const word &  ,
const dimensionSet &  ,
const   Type 
)

Construct given a name, a value and its dimensionSet.

dimensioned ( const word &  ,
const dimensioned< Type > &   
)

Construct from a dimensioned<Type> changing the name.

dimensioned ( const Type &  t  )  [inline]

Construct given a value (creates dimensionless value).

Definition at line 101 of file dimensionedType.H.

dimensioned ( Istream &   ) 

Construct from Istream.

dimensioned ( const word &  ,
Istream &   
)

Construct from an Istream with a given name.

dimensioned ( const word &  ,
const dimensionSet &  ,
Istream &   
)

Construct from an Istream with a given name and dimensions.


Member Function Documentation

const word& name (  )  const

Return const reference to name.

word& name (  ) 

Return non-const reference to name.

const dimensionSet& dimensions (  )  const

Return const reference to dimensions.

dimensionSet& dimensions (  ) 

Return non-const reference to dimensions.

const Type& value (  )  const

Return const reference to value.

Referenced by combustionMixture::fres().

Here is the caller graph for this function:

Type& value (  ) 

Return non-const reference to value.

dimensioned<cmptType> component ( const   direction  )  const

Return a component as a dimensioned<cmptType>.

void replace ( const   direction,
const dimensioned< cmptType > &   
)

Return a component with a dimensioned<cmptType>.

dimensioned<Type> T (  )  const

Return transpose.

dimensioned<cmptType> operator[] ( const   direction  )  const

Return a component as a dimensioned<cmptType>.

void operator+= ( const dimensioned< Type > &   ) 

Reimplemented in Time.

void operator-= ( const dimensioned< Type > &   ) 

void operator *= ( const   scalar  ) 

void operator/= ( const   scalar  ) 


Friends And Related Function Documentation

Istream& operator>> ( Istream &  ,
dimensioned< Type > &   
) [friend]

Ostream& operator ( Ostream &  ,
const dimensioned< Type > &   
) [friend]


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