39#ifndef Foam_primitives_int64_H
40#define Foam_primitives_int64_H
60 return word(std::to_string(val),
false);
70 return word(std::to_string(val),
false);
75inline int64_t
mag(
const int64_t val)
92inline int64_t
readInt64(
const std::string& str)
99bool readInt64(
const char* buf, int64_t& val);
103inline bool readInt64(
const std::string& str, int64_t& val)
110inline bool read(
const char* buf, int64_t& val)
117inline bool read(
const std::string& str, int64_t& val)
123Istream&
operator>>(Istream& is, int64_t& val);
170 static constexpr int64_t
min_ = INT64_MIN;
171 static constexpr int64_t
max_ = INT64_MAX;
178 static const int64_t
zero;
180 static const int64_t
min;
181 static const int64_t
max;
198 operator int64_t() const
noexcept {
return p_; }
201 operator int64_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
pTraits(int64_t val) noexcept
Copy construct from primitive.
static const char *const componentNames[]
static constexpr int64_t min_
static constexpr direction nComponents
Number of components in int64_t is 1.
static const int64_t rootMax
static constexpr direction rank
Rank of int64_t is 0.
static constexpr direction dim
Dimensionality of space.
int64_t magType
Magnitude type.
static constexpr int64_t max_
int64_t cmptType
Component type.
static const int64_t zero
static const int64_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).
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Istream & operator>>(Istream &, directionInfo &)
int64_t readInt64(Istream &is)
Read int64_t from stream.
word operator()(const int64_t val) const
Extract name (as a word) from an object, typically using its name() method.