equalOp< Scalar > Struct Template Reference

Compare scalar values for equality. More...

Public Member Functions

 equalOp (Scalar tol=ScalarVSMALL)
 Construct with specified tolerance (non-negative value) More...
 
bool operator() (const Scalar &a, const Scalar &b) const
 

Public Attributes

const Scalar tolerance
 

Detailed Description

template<>
struct Foam::equalOp< Scalar >

Compare scalar values for equality.

Definition at line 471 of file Scalar.H.

Constructor & Destructor Documentation

◆ equalOp()

equalOp ( Scalar  tol = ScalarVSMALL)
inline

Construct with specified tolerance (non-negative value)

Definition at line 476 of file Scalar.H.

Member Function Documentation

◆ operator()()

bool operator() ( const Scalar a,
const Scalar b 
) const
inline

Definition at line 481 of file Scalar.H.

References Foam::constant::physicoChemical::b, and Foam::mag().

Here is the call graph for this function:

Member Data Documentation

◆ tolerance

const Scalar tolerance

Definition at line 473 of file Scalar.H.


The documentation for this struct was generated from the following file: