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);
86inline uint64_t
readUint64(
const std::string& str)
93bool readUint64(
const char* buf, uint64_t& val);
97inline bool readUint64(
const std::string& str, uint64_t& val)
104inline bool read(
const char* buf, uint64_t& val)
111inline bool read(
const std::string& str, uint64_t& val)
117Istream&
operator>>(Istream& is, uint64_t& val);
155 static constexpr direction nComponents = 1;
160 static constexpr uint64_t
min_ = 0;
161 static constexpr uint64_t
max_ = UINT64_MAX;
168 static const uint64_t
zero;
169 static const uint64_t
one;
170 static const uint64_t
min;
171 static const uint64_t
max;
188 operator uint64_t() const
noexcept {
return p_; }
191 operator uint64_t&()
noexcept {
return p_; }
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static const char *const typeName
static const uint64_t min
static const char *const componentNames[]
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 constexpr direction nComponents
Number of components in uint64_t is 1.
static constexpr direction rank
Rank of uint64_t is 0.
static constexpr direction dim
Dimensionality of space.
static const uint64_t max
static constexpr uint64_t max_
static constexpr uint64_t min_
static const uint64_t zero
static const uint64_t rootMin
A traits class, which is primarily used for primitives and vector-space.
pTraits(const Base &obj)
Copy construct from base class.
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 &)
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.