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);
109 static constexpr
direction nComponents = 1;
114 static const char*
const typeName;
115 static const char*
const componentNames[];
116 static const int8_t
zero;
117 static const int8_t
one;
119 static const int8_t
max;
120 static const int8_t rootMax;
121 static const int8_t rootMin;
139 operator int8_t() const
noexcept {
return p_; }
142 operator int8_t&()
noexcept {
return p_; }
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.
int8_t cmptType
Component type.
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.
Istream & operator>>(Istream &, directionInfo &)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
word operator()(const int8_t val) const
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
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 ...
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...