38 #define SCALAR_AND_ERROR_BINARY_OPERATION(Op) \
40 inline scalarAndError operator Op \
42 const scalarAndError& a, \
43 const scalarAndError& b \
46 scalarAndError c(a); \
71 #define SCALAR_AND_ERROR_BINARY_COMPARE(Op) \
73 inline bool operator Op \
75 const scalarAndError& a, \
76 const scalarAndError& b \
79 return a.value Op b.value; \
109 return os << sae.
value <<
"(+-" << sae.
error <<
')';
125 <<
"Expected a '" <<
p
126 <<
"' while reading scalarAndError"
127 <<
", found " << t.
info()
void setBad()
Set stream to be bad.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Class to encapsulate a scalar value and an associated round-off error. The error is tracked through o...
A token holds items read from Istream.
punctuationToken
Standard punctuation tokens.
InfoProxy< token > info() const
Return info proxy.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool operator!=(const particle &, const particle &)
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
dimensionedScalar sqrt(const dimensionedScalar &ds)
Istream & operator>>(Istream &, pistonPointEdgeData &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
#define SCALAR_AND_ERROR_BINARY_OPERATION(Op)
Arithmetic operations between two scalar-and-errors.
#define SCALAR_AND_ERROR_BINARY_COMPARE(Op)
Comparisons between two scalar-and-errors.