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);
96bool readUint32(
const char* buf, uint32_t& val);
107inline bool read(
const char* buf, uint32_t& val)
114inline bool read(
const std::string& str, uint32_t& val)
120Istream&
operator>>(Istream& is, uint32_t& val);
152 static const char*
const componentNames[];
154 static const uint32_t
one;
155 static const uint32_t
min;
156 static const uint32_t
max;
182 operator uint32_t&()
noexcept
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static const char *const typeName
uint32_t cmptType
Component type.
pTraits(uint32_t val) noexcept
Copy construct from primitive.
static const uint32_t one
static const uint32_t max
static const uint32_t zero
static const uint32_t rootMin
static const uint32_t rootMax
static const uint32_t min
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,...
OBJstream os(runTime.globalPath()/outputName)
bool read(const char *buf, int32_t &val)
Same as readInt32.
uint32_t readUint32(Istream &is)
Read uint32_t from stream.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Istream & operator>>(Istream &, directionInfo &)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
word operator()(const uint32_t val) const
Extract name (as a word) from an object, typically using its name() method.