37#ifndef Foam_primitives_uint8_H
38#define Foam_primitives_uint8_H
58 return word(std::to_string(
int(val)),
false);
68 return word(std::to_string(
int(val)),
false);
113 static constexpr uint8_t
min_ = 0;
114 static constexpr uint8_t
max_ = UINT8_MAX;
121 static const uint8_t
zero;
122 static const uint8_t
one;
123 static const uint8_t
min;
124 static const uint8_t
max;
141 operator uint8_t() const
noexcept {
return p_; }
144 operator uint8_t&()
noexcept {
return p_; }
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static constexpr uint8_t min_
static const char *const componentNames[]
static const uint8_t rootMax
static const uint8_t zero
static constexpr direction nComponents
Number of components in uint8_t is 1.
static constexpr direction rank
Rank of uint8_t is 0.
uint8_t cmptType
Component type.
static constexpr direction dim
Dimensionality of space.
static constexpr uint8_t max_
pTraits(uint8_t val) noexcept
Copy construct from primitive.
static const uint8_t rootMin
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,...
uint8_t readUint8(Istream &is)
Read uint8_t from stream.
word operator()(const uint8_t val) const
Extract name (as a word) from an object, typically using its name() method.