39#ifndef Foam_primitives_int32_H
40#define Foam_primitives_int32_H
64 return word(std::to_string(val),
false);
74 return word(std::to_string(val),
false);
97bool readInt32(
const char* buf, int32_t& val);
101inline bool readInt32(
const std::string& str, int32_t& val)
108inline bool read(
const char* buf, int32_t& val)
115inline bool read(
const std::string& str, int32_t& val)
121Istream&
operator>>(Istream& is, int32_t& val);
128#if (__SIZEOF_LONG__ == 4)
166 static const char*
const componentNames[];
196 operator int32_t&()
noexcept
203inline int32_t
mag(
const int32_t val)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static const char *const typeName
int32_t cmptType
Component type.
int32_t magType
Magnitude type.
static const int32_t rootMax
static const int32_t rootMin
pTraits(int32_t val) noexcept
Copy construct from primitive.
static const int32_t zero
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)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Istream & operator>>(Istream &, directionInfo &)
int32_t readInt32(Istream &is)
Read int32_t from stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
word operator()(const int32_t val) const
Extract name (as a word) from an object, typically using its name() method.