37 #ifndef Foam_primitives_int_H 38 #define Foam_primitives_int_H 50 #define MAXMIN(RetType, Type1, Type2) \ 53 inline RetType min(const Type1 s1, const Type2 s2) \ 55 return (s1 < s2) ? s1 : s2; \ 59 inline RetType max(const Type1 s1, const Type2 s2) \ 61 return (s2 < s1) ? s1 : s2; \ 68 MAXMIN(int32_t, int32_t, int32_t)
69 MAXMIN(int64_t, int64_t, int32_t)
70 MAXMIN(int64_t, int32_t, int64_t)
71 MAXMIN(int64_t, int64_t, int64_t)
92 bool readInt(
const char* buf,
int& val);
96 inline 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)...
int readInt(Istream &is)
Read int from stream.
16bit signed integer. I/O is done as an int32.
MAXMIN(double, double, double) inline double pow(const double base
Raise base to the power expon.