39 #ifndef Foam_primitives_uint32_H 40 #define Foam_primitives_uint32_H 64 return word(std::to_string(val),
false);
73 return word(std::to_string(val),
false);
89 inline uint32_t
readUint32(
const std::string& str)
96 bool readUint32(
const char* buf, uint32_t& val);
100 inline bool readUint32(
const std::string& str, uint32_t& val)
107 inline bool read(
const char* buf, uint32_t& val)
114 inline bool read(
const std::string& str, uint32_t& val)
120 Istream&
operator>>(Istream& is, uint32_t& val);
134 typedef uint32_t cmptType;
146 static constexpr
direction nComponents = 1;
151 static const char*
const typeName;
152 static const char*
const componentNames[];
153 static const uint32_t
zero;
154 static const uint32_t
one;
155 static const uint32_t
min;
156 static const uint32_t
max;
157 static const uint32_t rootMax;
158 static const uint32_t rootMin;
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)...
A traits class, which is primarily used for primitives.
Extract name (as a word) from an object, typically using its name() method.
bool read(const char *buf, int32_t &val)
Same as readInt32.
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 uint32_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.
uint32_t readUint32(Istream &is)
Read uint32_t from stream.
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...