Loading...
Searching...
No Matches
pTraits< int32_t > Class Reference

Template specialization for pTraits<int32_t>. More...

#include <int32.H>

Inheritance diagram for pTraits< int32_t >:
Collaboration diagram for pTraits< int32_t >:

Public Types

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

Public Member Functions

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

Static Public Attributes

static constexpr direction dim = 3
 Dimensionality of space.
static constexpr direction rank = 0
 Rank of int32_t is 0.
static constexpr direction nComponents = 1
 Number of components in int32_t is 1.
static constexpr int32_t min_ = INT32_MIN
static constexpr int32_t max_ = INT32_MAX
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 = INT32_MAX
static const int32_t rootMin = INT32_MIN

Detailed Description

Template specialization for pTraits<int32_t>.

Definition at line 164 of file int32.H.

Member Typedef Documentation

◆ cmptType

typedef int32_t cmptType

Component type.

Definition at line 175 of file int32.H.

◆ magType

typedef int32_t magType

Magnitude type.

Definition at line 180 of file int32.H.

Constructor & Destructor Documentation

◆ pTraits() [1/2]

pTraits ( int32_t val)
inlineexplicitnoexcept

Copy construct from primitive.

Definition at line 224 of file int32.H.

References Foam::noexcept.

◆ pTraits() [2/2]

pTraits ( Istream & is)
explicit

Read construct from Istream.

Definition at line 38 of file int32.C.

Member Function Documentation

◆ operator int32_t()

operator int32_t ( ) const
inlinenoexcept

Return the value.

Definition at line 237 of file int32.H.

References Foam::noexcept.

◆ operator int32_t &()

operator int32_t & ( )
inlinenoexcept

Access the value.

Definition at line 242 of file int32.H.

Member Data Documentation

◆ dim

direction dim = 3
staticconstexpr

Dimensionality of space.

Definition at line 188 of file int32.H.

◆ rank

direction rank = 0
staticconstexpr

Rank of int32_t is 0.

Definition at line 193 of file int32.H.

◆ nComponents

direction nComponents = 1
staticconstexpr

Number of components in int32_t is 1.

Definition at line 198 of file int32.H.

◆ min_

int32_t min_ = INT32_MIN
staticconstexpr

Definition at line 203 of file int32.H.

◆ max_

int32_t max_ = INT32_MAX
staticconstexpr

Definition at line 204 of file int32.H.

◆ typeName

const char* const typeName
static

Definition at line 209 of file int32.H.

◆ componentNames

const char *const componentNames = { "" }
static

Definition at line 26 of file int32.H.

◆ zero

const int32_t zero = 0
static

Definition at line 211 of file int32.H.

◆ one

const int32_t one = 1
static

Definition at line 212 of file int32.H.

◆ min

const int32_t min = INT32_MIN
static

Definition at line 213 of file int32.H.

◆ max

const int32_t max = INT32_MAX
static

Definition at line 214 of file int32.H.

◆ rootMax

const int32_t rootMax = INT32_MAX
static

Definition at line 215 of file int32.H.

◆ rootMin

const int32_t rootMin = INT32_MIN
static

Definition at line 216 of file int32.H.


The documentation for this class was generated from the following files:
  • src/OpenFOAM/primitives/ints/int32/int32.H
  • src/OpenFOAM/primitives/complex/complex.C
  • src/OpenFOAM/primitives/ints/int32/int32.C