pTraits< Scalar > Class Reference

Public Types

typedef Scalar cmptType
 Component type. More...
 
typedef Scalar magType
 Magnitude type. More...
 
typedef label labelType
 Equivalent type of labels used for valid component indexing. More...
 

Public Member Functions

 pTraits (Scalar val) noexcept
 Copy construct from primitive. More...
 
 pTraits (Istream &is)
 Read construct from Istream. More...
 
 operator Scalar () const noexcept
 Return the value. More...
 
 operator Scalar & () noexcept
 Access the value. More...
 

Static Public Attributes

static constexpr direction dim = 3
 Dimensionality of space. More...
 
static constexpr direction rank = 0
 Rank of Scalar is 0. More...
 
static constexpr 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
 
static const Scalar vsmall = ScalarVSMALL
 

Detailed Description

Definition at line 67 of file Scalar.H.

Member Typedef Documentation

◆ cmptType

typedef Scalar cmptType

Component type.

Definition at line 76 of file Scalar.H.

◆ magType

typedef Scalar magType

Magnitude type.

Definition at line 79 of file Scalar.H.

◆ labelType

typedef label labelType

Equivalent type of labels used for valid component indexing.

Definition at line 82 of file Scalar.H.

Constructor & Destructor Documentation

◆ pTraits() [1/2]

pTraits ( Scalar  val)
inlineexplicitnoexcept

Copy construct from primitive.

Definition at line 113 of file Scalar.H.

◆ pTraits() [2/2]

pTraits ( Istream is)
explicit

Read construct from Istream.

Definition at line 50 of file Scalar.C.

Member Function Documentation

◆ operator Scalar()

operator Scalar ( ) const
inlinenoexcept

Return the value.

Definition at line 125 of file Scalar.H.

◆ operator Scalar &()

operator Scalar & ( )
inlinenoexcept

Access the value.

Definition at line 131 of file Scalar.H.

Member Data Documentation

◆ dim

constexpr direction dim = 3
staticconstexpr

Dimensionality of space.

Definition at line 88 of file Scalar.H.

◆ rank

constexpr direction rank = 0
staticconstexpr

Rank of Scalar is 0.

Definition at line 91 of file Scalar.H.

◆ nComponents

constexpr direction nComponents = 1
staticconstexpr

Number of components in Scalar is 1.

Definition at line 94 of file Scalar.H.

◆ typeName

const char *const typeName = "scalar"
static

Definition at line 99 of file Scalar.H.

◆ componentNames

const char *const componentNames = { "" }
static

Definition at line 100 of file Scalar.H.

◆ zero

const Scalar zero = 0.0
static

Definition at line 101 of file Scalar.H.

◆ one

const Scalar one = 1.0
static

Definition at line 102 of file Scalar.H.

◆ max

const Scalar max = ScalarVGREAT
static

Definition at line 103 of file Scalar.H.

◆ min

const Scalar min = -ScalarVGREAT
static

Definition at line 104 of file Scalar.H.

◆ rootMax

const Scalar rootMax = ScalarROOTVGREAT
static

Definition at line 105 of file Scalar.H.

◆ rootMin

const Scalar rootMin = -ScalarROOTVGREAT
static

Definition at line 106 of file Scalar.H.

◆ vsmall

const Scalar vsmall = ScalarVSMALL
static

Definition at line 107 of file Scalar.H.


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