39#ifndef Foam_primitives_uint64_H
40#define Foam_primitives_uint64_H
64 return word(std::to_string(val),
false);
74 return word(std::to_string(val),
false);
97bool readUint64(
const char* buf, uint64_t& val);
108inline bool read(
const char* buf, uint64_t& val)
115inline bool read(
const std::string& str, uint64_t& val)
121Istream&
operator>>(Istream& is, uint64_t& val);
128 Ostream&
operator<<(Ostream&
os,
const unsigned long val);
161 static const char*
const componentNames[];
163 static const uint64_t
one;
164 static const uint64_t
min;
165 static const uint64_t
max;
191 operator uint64_t&()
noexcept
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static const char *const typeName
static const uint64_t min
uint64_t cmptType
Component type.
static const uint64_t one
pTraits(uint64_t val) noexcept
Copy construct from primitive.
static const uint64_t rootMax
static const uint64_t max
static const uint64_t zero
static const uint64_t rootMin
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.
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.
uint64_t readUint64(Istream &is)
Read uint64_t from stream.
word operator()(const uint64_t val) const
Extract name (as a word) from an object, typically using its name() method.