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);
90 class pTraits<uint8_t>
111 static constexpr
direction nComponents = 1;
116 static const char*
const typeName;
117 static const char*
const componentNames[];
119 static const uint8_t
one;
120 static const uint8_t
min;
121 static const uint8_t
max;
122 static const uint8_t rootMax;
123 static const uint8_t rootMin;
uint8_t cmptType
Component type.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Extract name (as a word) from an object, typically using its name() method.
pTraits(const Base &obj)
Copy construct from base class.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
word operator()(const uint8_t val) const
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
Direction is an 8-bit unsigned integer type used to represent Cartesian directions, components etc.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
uint8_t readUint8(Istream &is)
Read uint8_t from stream.
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...