Go to the documentation of this file.
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)
90 inline bool readLabel(
const std::string& str, label& val)
111 void readRawLabel(Istream& is, label* data,
size_t nElem = 1);
117 label
pow(label a, label
b);
146 constexpr label
operator()(
const int32_t& val)
const noexcept
157 constexpr label
operator()(
const int64_t& val)
const noexcept
159 #if WM_LABEL_SIZE == 32
161 #elif WM_LABEL_SIZE == 64
179 (val < INT32_MIN) ? INT32_MIN
180 : (val > INT32_MAX) ? INT32_MAX
181 :
static_cast<int32_t
>(val)
195 #undef INT_ADD_DEF_SIZE
label & setComponent(label &l, const direction)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
constexpr label operator()(const int32_t &val) const noexcept
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Typedefs for label/uLabel without requiring label.H.
constexpr label operator()(const int64_t &val) const noexcept
label readLabel(const char *buf)
Parse entire buffer as a label, skipping leading/trailing whitespace.
label factorial(label n)
Evaluate n! : 0 < n <= 12.
int readInt(Istream &is)
Read int from stream.
label readRawLabel(Istream &is)
Read raw label from binary stream.
Conversion/extraction to label operation.
int32_t narrowInt32(const int64_t val)
Type narrowing from int64_t to int32_t.