37#ifndef Foam_primitives_int_H
38#define Foam_primitives_int_H
50#define MAXMIN(RetType, Type1, Type2) \
53inline RetType min(const Type1 s1, const Type2 s2) \
55 return (s1 < s2) ? s1 : s2; \
59inline RetType max(const Type1 s1, const Type2 s2) \
61 return (s2 < s1) ? s1 : s2; \
68MAXMIN(int32_t, int32_t, int32_t)
69MAXMIN(int64_t, int64_t, int32_t)
70MAXMIN(int64_t, int32_t, int64_t)
71MAXMIN(int64_t, int64_t, int64_t)
85inline
int readInt(const std::
string& str)
92bool readInt(
const char* buf,
int& val);
96inline bool readInt(
const std::string& str,
int& val)
98 return readInt(str.c_str(), val);
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
16bit signed integer. I/O is done as an int32.
#define MAXMIN(RetType, Type1, Type2)
int readInt(Istream &is)
Read int from stream.
MAXMIN(double, double, double) inline double pow(const double base
Raise base to the power expon.