Belle II Software  release-08-01-10
DiscreteValue< T, ATag > Class Template Reference

Representation for a discrete position in an array of discrete positions. More...

#include <DiscreteValue.h>

Inheritance diagram for DiscreteValue< T, ATag >:
Collaboration diagram for DiscreteValue< T, ATag >:

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.
 

Detailed Description

template<class T, class ATag = T>
class Belle2::TrackFindingCDC::DiscreteValue< T, ATag >

Representation for a discrete position in an array of discrete positions.

Definition at line 23 of file DiscreteValue.h.


The documentation for this class was generated from the following file: