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

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

#include <int16.H>

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

Public Types

typedef int16_t cmptType
 Component type.

Public Member Functions

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

Static Public Attributes

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

Detailed Description

Template specialization for pTraits<int16_t>.

Definition at line 84 of file int16.H.

Member Typedef Documentation

◆ cmptType

typedef int16_t cmptType

Component type.

Definition at line 95 of file int16.H.

Constructor & Destructor Documentation

◆ pTraits() [1/2]

pTraits ( int16_t val)
inlineexplicitnoexcept

Copy construct from primitive.

Definition at line 139 of file int16.H.

References Foam::noexcept.

◆ pTraits() [2/2]

pTraits ( Istream & is)
explicit

Read construct from Istream.

Member Function Documentation

◆ operator int16_t()

operator int16_t ( ) const
inlinenoexcept

Return the value.

Definition at line 152 of file int16.H.

References Foam::noexcept.

◆ operator int16_t &()

operator int16_t & ( )
inlinenoexcept

Access the value.

Definition at line 157 of file int16.H.

Member Data Documentation

◆ dim

direction dim = 3
staticconstexpr

Dimensionality of space.

Definition at line 103 of file int16.H.

◆ rank

direction rank = 0
staticconstexpr

Rank of int16_t is 0.

Definition at line 108 of file int16.H.

◆ nComponents

direction nComponents = 1
staticconstexpr

Number of components in int16_t is 1.

Definition at line 113 of file int16.H.

◆ min_

int16_t min_ = INT16_MIN
staticconstexpr

Definition at line 118 of file int16.H.

◆ max_

int16_t max_ = INT16_MAX
staticconstexpr

Definition at line 119 of file int16.H.

◆ typeName

const char *const typeName = "int16"
static

Definition at line 124 of file int16.H.

◆ componentNames

const char *const componentNames = { "" }
static

Definition at line 28 of file int16.H.

◆ zero

const int16_t zero = 0
static

Definition at line 126 of file int16.H.

◆ one

const int16_t one = 1
static

Definition at line 127 of file int16.H.

◆ min

const int16_t min = INT16_MIN
static

Definition at line 128 of file int16.H.

◆ max

const int16_t max = INT16_MAX
static

Definition at line 129 of file int16.H.

◆ rootMax

const int16_t rootMax = INT16_MAX
static

Definition at line 130 of file int16.H.

◆ rootMin

const int16_t rootMin = INT16_MIN
static

Definition at line 131 of file int16.H.


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