37#ifndef Foam_primitives_int_H
38#define Foam_primitives_int_H
49#define MAXMIN(retType, type1, type2) \
52inline retType min(const type1 s1, const type2 s2) \
54 return (s1 < s2) ? s1 : s2; \
58inline retType max(const type1 s1, const type2 s2) \
60 return (s2 < s1) ? s1 : s2; \
91bool readInt(
const char* buf,
int& val);
95inline bool readInt(
const std::string& str,
int& val)
97 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 via an int32.
#define MAXMIN(retType, type1, type2)
int readInt(Istream &is)
Read int from stream.