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

Public Types

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 direction dim = 3
 Dimensionality of space. More...
 
static const direction rank = 0
 Rank of bool is 0. More...
 
static const direction nComponents = 1
 Number of components in bool is 1. More...
 
static const char *const typeName = "bool"
 
static const char *const componentNames [] = { "" }
 
static const bool zero = false
 
static const bool one = true
 

Detailed Description

template<>
class Foam::pTraits< bool >

Definition at line 66 of file bool.H.

Member Typedef Documentation

◆ cmptType

typedef bool cmptType

Component type.

Definition at line 73 of file bool.H.

Constructor & Destructor Documentation

◆ pTraits() [1/2]

pTraits ( const bool &  p)
explicit

Construct from primitive.

Definition at line 36 of file bool.C.

◆ pTraits() [2/2]

pTraits ( Istream is)

Construct from Istream.

Definition at line 42 of file bool.C.

Member Function Documentation

◆ operator bool()

operator bool ( ) const
inline

Access to the bool value.

Definition at line 107 of file bool.H.

◆ operator bool &()

operator bool & ( )
inline

Access to the bool value.

Definition at line 113 of file bool.H.

Member Data Documentation

◆ dim

const direction dim = 3
static

Dimensionality of space.

Definition at line 78 of file bool.H.

◆ rank

const direction rank = 0
static

Rank of bool is 0.

Definition at line 81 of file bool.H.

◆ nComponents

const direction nComponents = 1
static

Number of components in bool is 1.

Definition at line 84 of file bool.H.

◆ typeName

const char *const typeName = "bool"
static

Definition at line 89 of file bool.H.

◆ componentNames

const char *const componentNames = { "" }
static

Definition at line 90 of file bool.H.

◆ zero

const bool zero = false
static

Definition at line 91 of file bool.H.

◆ one

const bool one = true
static

Definition at line 92 of file bool.H.


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