Unary function for applying component-wise clamping. More...
Public Member Functions | |
clampOp (const T &min, const T &max) | |
Construct from min/max limits. No validity checks. More... | |
clampOp (const MinMax< T > &range) | |
Construct from min/max range. No validity checks. More... | |
clampOp (const Foam::zero_one) | |
Construct as 0-1 min/max range. More... | |
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.
Construct from min/max range. No validity checks.
Definition at line 84 of file MinMaxOps.H.
|
inline |
Construct as 0-1 min/max range.
Definition at line 93 of file MinMaxOps.H.
Definition at line 98 of file MinMaxOps.H.
References clampOp< T >::lower, Foam::max(), Foam::min(), and clampOp< T >::upper.
const T lower |
Definition at line 69 of file MinMaxOps.H.
Referenced by clampOp< T >::operator()().
const T upper |
Definition at line 70 of file MinMaxOps.H.
Referenced by clampOp< T >::operator()().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.