equalOp< Scalar > Struct 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

Compare scalar values for equality.

Definition at line 476 of file Scalar.H.

Constructor & Destructor Documentation

◆ equalOp()

equalOp ( Scalar  tol = ScalarVSMALL)

Construct with specified tolerance (non-negative value)

Definition at line 481 of file Scalar.H.

Member Function Documentation

◆ operator()()

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

Definition at line 486 of file Scalar.H.

References b, and Foam::mag().

Here is the call graph for this function:

Member Data Documentation

◆ tolerance

const Scalar tolerance

Definition at line 478 of file Scalar.H.

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