Template Struct bound_parameter¶
Defined in File ParameterTypes.hpp
Struct Documentation¶
-
template<typename T, T(*)() MIN, T(*)() MAX> Acts::bound_parameter
type for parameter with restricted value range
This parameter type could be useful to describe parameter with physical meaningful bounds (e.g. radius).
- Template Parameters
T
: type for boundary value (usuallydouble
)MIN
: pointer to aconstexpr
function returning the lower bound of the value rangeMAX
: pointer to aconstexpr
function returning the upper bound of the value range
Public Static Functions
-
template<typename
U
>
UgetValue
(const U &input)¶ retrieve value for constrained parameter value ranges
- Return
input parameter value cut of at the boundaries
bound_parameter<U<MIN<MAX>::min
andbound_parameter<U,MIN,MAX>::max
.- Template Parameters
U
: type of the input parameter
- Parameters
input
: input parameter value