37#ifndef Foam_primitives_int16_H
38#define Foam_primitives_int16_H
56 return word(std::to_string(
int(val)),
false);
65 return word(std::to_string(
int(val)),
false);
108 static constexpr int16_t
min_ = INT16_MIN;
109 static constexpr int16_t
max_ = INT16_MAX;
116 static const int16_t
zero;
117 static const int16_t
one;
136 operator int16_t() const
noexcept {
return p_; }
139 operator int16_t&()
noexcept {
return p_; }
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static const char *const componentNames[]
static const int16_t rootMax
static constexpr int16_t min_
static constexpr int16_t max_
static constexpr direction nComponents
Number of components in int16_t is 1.
static constexpr direction rank
Rank of int16_t is 0.
static constexpr direction dim
Dimensionality of space.
pTraits(int16_t val) noexcept
Copy construct from primitive.
int16_t cmptType
Component type.
static const int16_t rootMin
static const int16_t zero
pTraits(Istream &is)
Read construct from Istream.
static const char *const typeName
pTraits(const Base &obj)
Copy construct from base class.
A class for handling words, derived from Foam::string.
Direction is an 8-bit unsigned integer type used to represent Cartesian directions,...
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
Istream & operator>>(Istream &, directionInfo &)
word operator()(const int16_t val) const
Extract name (as a word) from an object, typically using its name() method.