pTraits< int32_t > Class Template Reference

Template specialization for pTraits<int32_t> More...

Public Types

typedef int32_t cmptType
 Component type. More...
 
typedef int32_t magType
 Magnitude type. More...
 

Public Member Functions

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

Static Public Attributes

static constexpr direction dim = 3
 Dimensionality of space. More...
 
static constexpr direction rank = 0
 Rank of int32_t is 0. More...
 
static constexpr direction nComponents = 1
 Number of components in int32_t is 1. More...
 
static const char *const typeName
 
static const char *const componentNames [] = { "" }
 
static const int32_t zero = 0
 
static const int32_t one = 1
 
static const int32_t min = INT32_MIN
 
static const int32_t max = INT32_MAX
 
static const int32_t rootMax = pTraits<int32_t>::max
 
static const int32_t rootMin = pTraits<int32_t>::min
 

Detailed Description

template<>
class Foam::pTraits< int32_t >

Template specialization for pTraits<int32_t>

Definition at line 136 of file int32.H.

Member Typedef Documentation

◆ cmptType

typedef int32_t cmptType

Component type.

Definition at line 145 of file int32.H.

◆ magType

typedef int32_t magType

Magnitude type.

Definition at line 148 of file int32.H.

Constructor & Destructor Documentation

◆ pTraits() [1/2]

pTraits ( const int32_t &  val)
explicitnoexcept

Copy construct from primitive.

Definition at line 45 of file int32.C.

◆ pTraits() [2/2]

pTraits ( Istream is)
explicit

Read construct from Istream.

Definition at line 50 of file int32.C.

Member Function Documentation

◆ operator int32_t()

operator int32_t ( ) const
inlinenoexcept

Access to the value.

Definition at line 187 of file int32.H.

◆ operator int32_t &()

operator int32_t & ( )
inlinenoexcept

Access to the value.

Definition at line 193 of file int32.H.

Member Data Documentation

◆ dim

constexpr direction dim = 3
staticconstexpr

Dimensionality of space.

Definition at line 154 of file int32.H.

◆ rank

constexpr direction rank = 0
staticconstexpr

Rank of int32_t is 0.

Definition at line 157 of file int32.H.

◆ nComponents

constexpr direction nComponents = 1
staticconstexpr

Number of components in int32_t is 1.

Definition at line 160 of file int32.H.

◆ typeName

const char* const typeName
static

Definition at line 165 of file int32.H.

◆ componentNames

const char *const componentNames = { "" }
static

Definition at line 166 of file int32.H.

◆ zero

const int32_t zero = 0
static

Definition at line 167 of file int32.H.

◆ one

const int32_t one = 1
static

Definition at line 168 of file int32.H.

◆ min

const int32_t min = INT32_MIN
static

Definition at line 169 of file int32.H.

◆ max

const int32_t max = INT32_MAX
static

Definition at line 170 of file int32.H.

◆ rootMax

const int32_t rootMax = pTraits<int32_t>::max
static

Definition at line 171 of file int32.H.

◆ rootMin

const int32_t rootMin = pTraits<int32_t>::min
static

Definition at line 172 of file int32.H.


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