Loading...
Searching...
No Matches
equalOp< Scalar > Struct Reference

Compare scalar values for equality. More...

#include <scalarImpl.H>

Inheritance diagram for equalOp< Scalar >:
Collaboration diagram for equalOp< Scalar >:

Public Member Functions

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

Public Attributes

const Scalar tolerance

Detailed Description

Compare scalar values for equality.

Definition at line 571 of file scalarImpl.H.

Constructor & Destructor Documentation

◆ equalOp()

equalOp ( Scalar tol = ScalarVSMALL)
inline

Construct with specified tolerance (non-negative value).

Definition at line 578 of file scalarImpl.H.

References Scalar, ScalarVSMALL, and tolerance.

Member Function Documentation

◆ operator()()

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

Definition at line 583 of file scalarImpl.H.

References b, Foam::mag(), Scalar, and tolerance.

Here is the call graph for this function:

Member Data Documentation

◆ tolerance

const Scalar tolerance

Definition at line 573 of file scalarImpl.H.

Referenced by equalOp(), and operator()().


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