38#ifndef Foam_primitives_uint8_H
39#define Foam_primitives_uint8_H
63 return word(std::to_string(
int(val)),
false);
73 return word(std::to_string(
int(val)),
false);
117 static const char*
const componentNames[];
147 operator uint8_t&()
noexcept
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static const uint8_t rootMax
static const uint8_t zero
uint8_t cmptType
Component type.
pTraits(uint8_t val) noexcept
Copy construct from primitive.
static const uint8_t rootMin
static const char *const typeName
A traits class, which is primarily used for primitives.
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 name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
word operator()(const uint8_t val) const
Extract name (as a word) from an object, typically using its name() method.