Go to the documentation of this file.
63 return word(std::to_string(val),
false);
73 return word(std::to_string(val),
false);
96 bool readInt32(
const char* buf, int32_t& val);
100 inline bool readInt32(
const std::string& str, int32_t& val)
107 inline bool read(
const char* buf, int32_t& val)
114 inline bool read(
const std::string& str, int32_t& val)
120 Istream&
operator>>(Istream& is, int32_t& val);
121 Ostream&
operator<<(Ostream& os,
const int32_t val);
127 #if (__SIZEOF_LONG__ == 4)
129 Ostream&
operator<<(Ostream& os,
const long val);
165 static const char*
const componentNames[];
177 explicit pTraits(
const int32_t& val);
186 operator int32_t()
const
199 inline int32_t
mag(
const int32_t val)
static const int32_t zero
A class for handling words, derived from Foam::string.
bool read(const char *buf, int32_t &val)
Same as readInt32.
Istream & operator>>(Istream &, directionInfo &)
word operator()(const int32_t val) const
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
pTraits(const PrimitiveType &p)
Copy construct from primitive.
word name(const complex &c)
Return string representation of complex.
Extract name (as a word) from an object, typically using its name() method.
int32_t cmptType
Component type.
int32_t readInt32(Istream &is)
Read int32_t from stream.
Direction is an 8-bit unsigned integer type used to represent the Cartesian directions etc.
int32_t magType
Magnitude type.
static const char *const typeName
Traits class for primitives.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
static const int32_t rootMin
static const int32_t rootMax