All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Types | List of all members
cluster::details::Measure_t< T > Class Template Reference

Type for a simple measurement: value and error. More...

#include <ClusterParamsAlgBase.h>

Inheritance diagram for cluster::details::Measure_t< T >:

Public Types

using Data_t = T
 

Public Member Functions

 Measure_t ()
 Default constructor: initializes to 0. More...
 
 Measure_t (Data_t value)
 Constructor: initializes to the specified value, error is 0. More...
 
 Measure_t (Data_t value, Data_t error)
 Constructor: initializes to the specified value and error. More...
 
Data_t value () const
 
Data_tvalue ()
 
Data_t error () const
 
Data_terror ()
 

Private Types

using Base_t = std::pair< T, T >
 

Detailed Description

template<typename T>
class cluster::details::Measure_t< T >

Type for a simple measurement: value and error.

Definition at line 39 of file ClusterParamsAlgBase.h.

Member Typedef Documentation

template<typename T>
using cluster::details::Measure_t< T >::Base_t = std::pair<T, T>
private

Definition at line 40 of file ClusterParamsAlgBase.h.

template<typename T>
using cluster::details::Measure_t< T >::Data_t = T

Definition at line 43 of file ClusterParamsAlgBase.h.

Constructor & Destructor Documentation

template<typename T>
cluster::details::Measure_t< T >::Measure_t ( )
inline

Default constructor: initializes to 0.

Definition at line 46 of file ClusterParamsAlgBase.h.

template<typename T>
cluster::details::Measure_t< T >::Measure_t ( Data_t  value)
inline

Constructor: initializes to the specified value, error is 0.

Definition at line 49 of file ClusterParamsAlgBase.h.

template<typename T>
cluster::details::Measure_t< T >::Measure_t ( Data_t  value,
Data_t  error 
)
inline

Constructor: initializes to the specified value and error.

Definition at line 52 of file ClusterParamsAlgBase.h.

Member Function Documentation

template<typename T>
Data_t cluster::details::Measure_t< T >::error ( ) const
inline

Definition at line 66 of file ClusterParamsAlgBase.h.

67  {
68  return Base_t::second;
69  }
template<typename T>
Data_t& cluster::details::Measure_t< T >::error ( )
inline

Definition at line 71 of file ClusterParamsAlgBase.h.

72  {
73  return Base_t::second;
74  }
template<typename T>
Data_t cluster::details::Measure_t< T >::value ( ) const
inline

Definition at line 55 of file ClusterParamsAlgBase.h.

56  {
57  return Base_t::first;
58  }
template<typename T>
Data_t& cluster::details::Measure_t< T >::value ( )
inline

Definition at line 60 of file ClusterParamsAlgBase.h.

61  {
62  return Base_t::first;
63  }

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