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

Public Types

typedef Scalar cmptType
 Component type. More...
 
typedef label labelType
 Equivalent type of labels used for valid component indexing. 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 direction dim = 3
 Dimensionality of space. More...
 
static const direction rank = 0
 Rank of Scalar is 0. More...
 
static const direction nComponents = 1
 Number of components in Scalar is 1. More...
 
static const char *const typeName = "scalar"
 
static const char *const componentNames [] = { "" }
 
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.

typedef label labelType

Equivalent type of labels used for valid component indexing.

Definition at line 54 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 93 of file Scalar.H.

operator Scalar & ( )
inline

Access to the Scalar value.

Definition at line 99 of file Scalar.H.

References Foam::name(), and Scalar.

Here is the call graph for this function:

Member Data Documentation

const direction dim = 3
static

Dimensionality of space.

Definition at line 60 of file Scalar.H.

const direction rank = 0
static

Rank of Scalar is 0.

Definition at line 63 of file Scalar.H.

const direction nComponents = 1
static

Number of components in Scalar is 1.

Definition at line 66 of file Scalar.H.

const char *const typeName = "scalar"
static

Definition at line 71 of file Scalar.H.

const char *const componentNames = { "" }
static

Definition at line 72 of file Scalar.H.

const Scalar zero = 0.0
static

Definition at line 73 of file Scalar.H.

const Scalar one = 1.0
static

Definition at line 74 of file Scalar.H.

const Scalar max = ScalarVGREAT
static

Definition at line 75 of file Scalar.H.

const Scalar min = -ScalarVGREAT
static

Definition at line 76 of file Scalar.H.

const Scalar rootMax = ScalarROOTVGREAT
static

Definition at line 77 of file Scalar.H.

const Scalar rootMin = -ScalarROOTVGREAT
static

Definition at line 78 of file Scalar.H.


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