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

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

#include <int8.H>

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

Public Types

typedef int8_t cmptType
 Component type.

Public Member Functions

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

Static Public Attributes

static constexpr direction dim = 3
 Dimensionality of space.
static constexpr direction rank = 0
 Rank of int8_t is 0.
static constexpr direction nComponents = 1
 Number of components in int8_t is 1.
static const char *const typeName = "int8"
static const char *const componentNames [] = { "" }
static const int8_t zero = 0
static const int8_t one = 1
static const int8_t min = INT8_MIN
static const int8_t max = INT8_MAX
static const int8_t rootMax = INT8_MAX
static const int8_t rootMin = INT8_MIN
static constexpr int8_t min_ = INT8_MIN
static constexpr int8_t max_ = INT8_MAX

Detailed Description

Template specialization for pTraits<int8_t>.

Definition at line 94 of file int8.H.

Member Typedef Documentation

◆ cmptType

typedef int8_t cmptType

Component type.

Definition at line 105 of file int8.H.

Constructor & Destructor Documentation

◆ pTraits() [1/2]

pTraits ( int8_t val)
inlineexplicitnoexcept

Copy construct from primitive.

Definition at line 149 of file int8.H.

References Foam::noexcept.

◆ pTraits() [2/2]

pTraits ( Istream & is)
explicit

Read construct from Istream.

Definition at line 39 of file int8.C.

Member Function Documentation

◆ operator int8_t()

operator int8_t ( ) const
inlinenoexcept

Return the value.

Definition at line 162 of file int8.H.

References Foam::noexcept.

◆ operator int8_t &()

operator int8_t & ( )
inlinenoexcept

Access the value.

Definition at line 167 of file int8.H.

Member Data Documentation

◆ dim

direction dim = 3
staticconstexpr

Dimensionality of space.

Definition at line 113 of file int8.H.

◆ rank

direction rank = 0
staticconstexpr

Rank of int8_t is 0.

Definition at line 118 of file int8.H.

◆ nComponents

direction nComponents = 1
staticconstexpr

Number of components in int8_t is 1.

Definition at line 123 of file int8.H.

◆ typeName

const char *const typeName = "int8"
static

Definition at line 128 of file int8.H.

◆ componentNames

const char *const componentNames = { "" }
static

Definition at line 27 of file int8.H.

◆ zero

const int8_t zero = 0
static

Definition at line 130 of file int8.H.

◆ one

const int8_t one = 1
static

Definition at line 131 of file int8.H.

◆ min

const int8_t min = INT8_MIN
static

Definition at line 132 of file int8.H.

◆ max

const int8_t max = INT8_MAX
static

Definition at line 133 of file int8.H.

◆ rootMax

const int8_t rootMax = INT8_MAX
static

Definition at line 134 of file int8.H.

◆ rootMin

const int8_t rootMin = INT8_MIN
static

Definition at line 135 of file int8.H.

◆ min_

int8_t min_ = INT8_MIN
staticconstexpr

Definition at line 140 of file int8.H.

◆ max_

int8_t max_ = INT8_MAX
staticconstexpr

Definition at line 141 of file int8.H.


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