Belle II Software development
|
Representation for a discrete position in an array of discrete positions. More...
#include <DiscreteValue.h>
Public Types | |
using | Array = std::vector< T > |
The type of the array which contains the underlying values. | |
Public Member Functions | |
DiscreteValue ()=default | |
Default constructor for to obtain a valid object in all contexts. | |
DiscreteValue (const Super &iter) | |
Constructor from underlying iterator type. | |
DiscreteValue (T &value) | |
Constructor from a reference to the underlying type Care must be taken to feed it a reference that comes from a vector. | |
operator const T & () const | |
Allow explicit conversion to the container type. | |
Static Public Member Functions | |
static std::array< This, 2 > | getRange (Array &values) |
Extract the range from an array providing the discrete values. | |
Private Types | |
using | Super = typename std::vector< T >::const_iterator |
Type of the base class. | |
using | This = DiscreteValue< T, ATag > |
Type of this class. | |
Friends | |
std::ostream & | operator<< (std::ostream &output, const This &discreteValue) |
Output operator for debugging. | |
Representation for a discrete position in an array of discrete positions.
Definition at line 23 of file DiscreteValue.h.
using Array = std::vector<T> |
The type of the array which contains the underlying values.
Definition at line 55 of file DiscreteValue.h.
|
private |
Type of the base class.
Definition at line 27 of file DiscreteValue.h.
|
private |
Type of this class.
Definition at line 30 of file DiscreteValue.h.
|
inlineexplicit |
Constructor from underlying iterator type.
Definition at line 40 of file DiscreteValue.h.
|
inlineexplicit |
Constructor from a reference to the underlying type Care must be taken to feed it a reference that comes from a vector.
Definition at line 44 of file DiscreteValue.h.
Extract the range from an array providing the discrete values.
Definition at line 59 of file DiscreteValue.h.
|
inlineexplicit |
Allow explicit conversion to the container type.
Definition at line 47 of file DiscreteValue.h.
|
friend |
Output operator for debugging.
Definition at line 51 of file DiscreteValue.h.