Unary function for applying component-wise clamping. More...
#include <MinMaxOps.H>
Public Member Functions | |
| clampOp (const T &min, const T &max) | |
| Construct from min/max limits. No validity checks. | |
| clampOp (const MinMax< T > &range) | |
| Construct from min/max range. No validity checks. | |
| clampOp (Foam::zero_one) | |
| Construct as 0-1 min/max range. | |
| T | operator() (const T &val) const |
Public Attributes | |
| const T | lower |
| const T | upper |
Unary function for applying component-wise clamping.
Definition at line 67 of file MinMaxOps.H.
Construct from min/max limits. No validity checks.
Definition at line 75 of file MinMaxOps.H.
References lower, Foam::max(), Foam::min(), Foam::T(), and upper.
Referenced by clampOp().


Construct from min/max range. No validity checks.
Definition at line 84 of file MinMaxOps.H.
References lower, Foam::max(), Foam::min(), range, and upper.

|
inline |
Construct as 0-1 min/max range.
Definition at line 93 of file MinMaxOps.H.
References clampOp(), and Foam::T().

Definition at line 98 of file MinMaxOps.H.
References lower, Foam::max(), Foam::min(), Foam::T(), and upper.

Definition at line 69 of file MinMaxOps.H.
Referenced by clampOp(), clampOp(), and operator()().
Definition at line 70 of file MinMaxOps.H.
Referenced by clampOp(), clampOp(), and operator()().