scalarAndErrorI.H File Reference
Include dependency graph for scalarAndErrorI.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Macros

#define SCALAR_AND_ERROR_BINARY_OPERATION(Op)
 Arithmetic operations between two scalar-and-errors. More...
 
#define SCALAR_AND_ERROR_BINARY_COMPARE(Op)
 Comparisons between two scalar-and-errors. More...
 

Functions

scalarAndError operator+ (const scalarAndError &a, const scalarAndError &b)
 
scalarAndError operator- (const scalarAndError &a, const scalarAndError &b)
 
scalarAndError operator* (const scalarAndError &a, const scalarAndError &b)
 
scalarAndError operator/ (const scalarAndError &a, const scalarAndError &b)
 
bool operator== (const scalarAndError &a, const scalarAndError &b)
 Equality compare two scalar-and-error-s. More...
 
bool operator!= (const scalarAndError &a, const scalarAndError &b)
 Inequality compare two scalar-and-error-s. More...
 
bool operator< (const scalarAndError &a, const scalarAndError &b)
 
bool operator<= (const scalarAndError &a, const scalarAndError &b)
 
bool operator>= (const scalarAndError &a, const scalarAndError &b)
 
bool operator> (const scalarAndError &a, const scalarAndError &b)
 
scalarAndError magSqr (const scalarAndError &sae)
 Return the magnitude square of a scalar-and-error. More...
 
scalarAndError sqrt (const scalarAndError &sae)
 Return the square root of a scalar-and-error. More...
 
Ostream & operator<< (Ostream &os, const scalarAndError &sae)
 Write a scalar-and-error. More...
 
Istream & operator>> (Istream &is, scalarAndError &sae)
 Read a scalar-and-error. More...
 

Detailed Description

Original source file scalarAndErrorI.H

Definition in file scalarAndErrorI.H.

Macro Definition Documentation

◆ SCALAR_AND_ERROR_BINARY_OPERATION

#define SCALAR_AND_ERROR_BINARY_OPERATION (   Op)
Value:
\
inline scalarAndError operator Op \
( \
const scalarAndError& a, \
const scalarAndError& b \
) \
{ \
scalarAndError c(a); \
c Op##= b; \
return c; \
}
volScalarField & b
Definition: createFields.H:25
const dimensionedScalar c
Speed of light in a vacuum.
#define Op(opName, op)
Definition: ops.H:100

Arithmetic operations between two scalar-and-errors.

Definition at line 38 of file scalarAndErrorI.H.

◆ SCALAR_AND_ERROR_BINARY_COMPARE

#define SCALAR_AND_ERROR_BINARY_COMPARE (   Op)
Value:
\
inline bool operator Op \
( \
const scalarAndError& a, \
const scalarAndError& b \
) \
{ \
return a.value Op b.value; \
}

Comparisons between two scalar-and-errors.

Definition at line 71 of file scalarAndErrorI.H.