39 #ifndef Foam_primitives_label_H 40 #define Foam_primitives_label_H 47 #define INT_ADD_SIZE(x,s,y) x ## s ## y 48 #define INT_ADD_DEF_SIZE(x,s,y) INT_ADD_SIZE(x,s,y) 49 #define INT_SIZE(x,y) INT_ADD_DEF_SIZE(x,WM_LABEL_SIZE,y) 82 inline bool readLabel(
const char* buf, label& val)
90 inline bool readLabel(
const std::string& str, label& val)
117 label
pow(label a, label
b);
141 template<
class>
struct labelOp;
147 constexpr label operator()(
const int32_t& val)
const noexcept 158 constexpr label operator()(
const int64_t& val)
const noexcept 160 #if WM_LABEL_SIZE == 32 162 #elif WM_LABEL_SIZE == 64 180 (val < INT32_MIN) ? INT32_MIN
181 : (val > INT32_MAX) ? INT32_MAX
182 : static_cast<int32_t>(val)
196 #undef INT_ADD_DEF_SIZE
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
label readLabel(const char *buf)
Parse entire buffer as a label, skipping leading/trailing whitespace.
int readInt(Istream &is)
Read int from stream.
Typedefs for label/uLabel without requiring label.H.
Conversion/extraction to label operation.
int32_t narrowInt32(const int64_t val)
Type narrowing from int64_t to int32_t.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
label factorial(label n)
Evaluate n! : 0 < n <= 12.
Database for solution data, solver performance and other reduced data.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
label readRawLabel(Istream &is)
Read raw label from binary stream.
label & setComponent(label &val, const direction) noexcept
Non-const access to integer-type (has no components)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)