37#ifndef Foam_primitives_int8_H
38#define Foam_primitives_int8_H
58 return word(std::to_string(
int(val)),
false);
68 return word(std::to_string(
int(val)),
false);
116 static const int8_t
zero;
117 static const int8_t
one;
119 static const int8_t
max;
126 static constexpr int8_t
min_ = INT8_MIN;
127 static constexpr int8_t
max_ = INT8_MAX;
142 operator int8_t() const
noexcept {
return p_; }
145 operator int8_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 constexpr int8_t min_
static const int8_t rootMin
static constexpr direction nComponents
Number of components in int8_t is 1.
static constexpr direction rank
Rank of int8_t is 0.
static constexpr int8_t max_
static constexpr direction dim
Dimensionality of space.
pTraits(int8_t val) noexcept
Copy construct from primitive.
static const int8_t rootMax
int8_t cmptType
Component type.
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 int8_t val) const
Extract name (as a word) from an object, typically using its name() method.