Public Types | Public Member Functions | Static Public Attributes | List of all members
pTraits< Scalar > Class Template Reference

Public Types

enum  { dim = 3, rank = 0, nComponents = 1 }
 
typedef Scalar cmptType
 Component type. More...
 

Public Member Functions

 pTraits (const Scalar &)
 Construct from primitive. More...
 
 pTraits (Istream &)
 Construct from Istream. More...
 
 operator Scalar () const
 Access to the Scalar value. More...
 
 operator Scalar & ()
 Access to the Scalar value. More...
 

Static Public Attributes

static const char *const typeName = "scalar"
 
static const char * componentNames [] = { "x" }
 
static const Scalar zero = 0.0
 
static const Scalar one = 1.0
 
static const Scalar max = ScalarVGREAT
 
static const Scalar min = -ScalarVGREAT
 
static const Scalar rootMax = ScalarROOTVGREAT
 
static const Scalar rootMin = -ScalarROOTVGREAT
 

Detailed Description

template<>
class Foam::pTraits< Scalar >

Definition at line 44 of file Scalar.H.

Member Typedef Documentation

typedef Scalar cmptType

Component type.

Definition at line 51 of file Scalar.H.

Member Enumeration Documentation

anonymous enum
Enumerator
dim 

Dimensionality of space.

rank 

Rank of Scalar is 0.

nComponents 

Number of components in Scalar is 1.

Definition at line 55 of file Scalar.H.

Constructor & Destructor Documentation

pTraits ( const Scalar p)
explicit

Construct from primitive.

Definition at line 43 of file Scalar.C.

pTraits ( Istream is)

Construct from Istream.

Definition at line 49 of file Scalar.C.

Member Function Documentation

operator Scalar ( ) const
inline

Access to the Scalar value.

Definition at line 85 of file Scalar.H.

operator Scalar & ( )
inline

Access to the Scalar value.

Definition at line 91 of file Scalar.H.

References Foam::name(), and Scalar.

Here is the call graph for this function:

Member Data Documentation

const char *const typeName = "scalar"
static

Definition at line 64 of file Scalar.H.

const char * componentNames = { "x" }
static

Definition at line 65 of file Scalar.H.

const Scalar zero = 0.0
static

Definition at line 66 of file Scalar.H.

const Scalar one = 1.0
static

Definition at line 67 of file Scalar.H.

const Scalar max = ScalarVGREAT
static

Definition at line 68 of file Scalar.H.

const Scalar min = -ScalarVGREAT
static

Definition at line 69 of file Scalar.H.

const Scalar rootMax = ScalarROOTVGREAT
static

Definition at line 70 of file Scalar.H.

const Scalar rootMin = -ScalarROOTVGREAT
static

Definition at line 71 of file Scalar.H.


The documentation for this class was generated from the following files: