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);
75 inline int64_t
mag(
const int64_t val)
92 inline int64_t
readInt64(
const std::string& str)
99 bool readInt64(
const char* buf, int64_t& val);
103 inline bool readInt64(
const std::string& str, int64_t& val)
110 inline bool read(
const char* buf, int64_t& val)
117 inline bool read(
const std::string& str, int64_t& val)
123 Istream&
operator>>(Istream& is, int64_t& val);
129 #if defined(__APPLE__) 150 typedef int64_t cmptType;
153 typedef int64_t magType;
170 static const char*
const typeName;
171 static const char*
const componentNames[];
172 static const int64_t
zero;
173 static const int64_t
one;
175 static const int64_t
max;
176 static const int64_t rootMax;
177 static const int64_t rootMin;
195 operator int64_t() const
noexcept {
return p_; }
198 operator int64_t&()
noexcept {
return p_; }
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
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 and vector-space.
::Foam::direction nComponents(const expressions::valueTypeCode) noexcept
The number of components associated with given valueTypeCode.
Extract name (as a word) from an object, typically using its name() method.
bool read(const char *buf, int32_t &val)
Same as readInt32.
int64_t readInt64(Istream &is)
Read int64_t from stream.
pTraits(const Base &obj)
Copy construct from base class.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::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)
word operator()(const int64_t val) const
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.
::Foam::direction rank(const expressions::valueTypeCode) noexcept
The vector-space rank associated with given valueTypeCode.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...