17 namespace TrackFindingCDC {
20 template<
class T,
class ATag = T>
33 operator const T& ()
const {
return m_value; }
41 {
return {{
This(bounds.front()),
This(bounds.back()) }}; }
Type to have values not based on discrete positions from an array.
ContinuousValue< T, ATag > This
Shortcut for the class itself.
std::array< T, 2 > Array
Mock array type to be a drop in replacement for the discrete values.
ContinuousValue()=default
Allow default construction.
static std::array< This, 2 > getRange(const Array &bounds)
Extract the range from an array providing the discrete values.
ContinuousValue(const T &value)
Constructor from the underlying type.
T m_value
Memory for the underlying value.
Abstract base class for different kinds of events.