39 #ifndef Foam_primitives_uint64_H 40 #define Foam_primitives_uint64_H 60 return word(std::to_string(val),
false);
70 return word(std::to_string(val),
false);
86 inline uint64_t
readUint64(
const std::string& str)
93 bool readUint64(
const char* buf, uint64_t& val);
97 inline bool readUint64(
const std::string& str, uint64_t& val)
104 inline bool read(
const char* buf, uint64_t& val)
111 inline bool read(
const std::string& str, uint64_t& val)
117 Istream&
operator>>(Istream& is, uint64_t& val);
143 typedef uint64_t cmptType;
155 static constexpr
direction nComponents = 1;
160 static const char*
const typeName;
161 static const char*
const componentNames[];
162 static const uint64_t
zero;
163 static const uint64_t
one;
164 static const uint64_t
min;
165 static const uint64_t
max;
166 static const uint64_t rootMax;
167 static const uint64_t rootMin;
188 operator uint64_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)...
A traits class, which is primarily used for primitives.
word operator()(const uint64_t val) const
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
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 ...
uint64_t readUint64(Istream &is)
Read uint64_t from stream.
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...