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

Public Types

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

Public Member Functions

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

Static Public Attributes

static const char *const typeName = "bool"
 
static const char * componentNames [] = { "x" }
 
static const bool zero = false
 
static const bool one = true
 

Detailed Description

template<>
class Foam::pTraits< bool >

Definition at line 65 of file bool.H.

Member Typedef Documentation

typedef bool cmptType

Component type.

Definition at line 72 of file bool.H.

Member Enumeration Documentation

anonymous enum
Enumerator
dim 

Dimensionality of space.

rank 

Rank of bool is 0.

nComponents 

Number of components in bool is 1.

Definition at line 76 of file bool.H.

Constructor & Destructor Documentation

pTraits ( const bool &  p)
explicit

Construct from primitive.

Definition at line 36 of file bool.C.

pTraits ( Istream is)

Construct from Istream.

Definition at line 42 of file bool.C.

Member Function Documentation

operator bool ( ) const
inline

Access to the bool value.

Definition at line 104 of file bool.H.

operator bool & ( )
inline

Access to the bool value.

Definition at line 110 of file bool.H.

Member Data Documentation

const char *const typeName = "bool"
static

Definition at line 86 of file bool.H.

const char * componentNames = { "x" }
static

Definition at line 87 of file bool.H.

const bool zero = false
static

Definition at line 88 of file bool.H.

const bool one = true
static

Definition at line 89 of file bool.H.


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