Belle II Software development
|
Type to have values not based on discrete positions from an array. More...
#include <ContinuousValue.h>
Public Types | |
using | This = ContinuousValue< T, ATag > |
Shortcut for the class itself. | |
using | Array = std::array< T, 2 > |
Mock array type to be a drop in replacement for the discrete values. | |
Public Member Functions | |
ContinuousValue ()=default | |
Allow default construction. | |
ContinuousValue (const T &value) | |
Constructor from the underlying type. | |
operator const T & () const | |
Allow automatic casts to the underlying type. | |
Static Public Member Functions | |
static std::array< This, 2 > | getRange (const Array &bounds) |
Extract the range from an array providing the discrete values. | |
Private Attributes | |
T | m_value |
Memory for the underlying value. | |
Type to have values not based on discrete positions from an array.
Definition at line 21 of file ContinuousValue.h.
using Array = std::array<T, 2> |
Mock array type to be a drop in replacement for the discrete values.
Definition at line 36 of file ContinuousValue.h.
using This = ContinuousValue<T, ATag> |
Shortcut for the class itself.
Definition at line 24 of file ContinuousValue.h.
|
inlineexplicit |
Constructor from the underlying type.
Definition at line 30 of file ContinuousValue.h.
Extract the range from an array providing the discrete values.
Definition at line 40 of file ContinuousValue.h.
|
inline |
|
private |
Memory for the underlying value.
Definition at line 45 of file ContinuousValue.h.