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 37 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 38 of file ClusterParamsAlgBase.h.

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

Definition at line 41 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 44 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 47 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 50 of file ClusterParamsAlgBase.h.

50 : Base_t(value, error) {}
error
Definition: include.cc:26

Member Function Documentation

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

Definition at line 64 of file ClusterParamsAlgBase.h.

65  {
66  return Base_t::second;
67  }
second_as<> second
Type of time stored in seconds, in double precision.
Definition: spacetime.h:85
template<typename T>
Data_t& cluster::details::Measure_t< T >::error ( )
inline

Definition at line 69 of file ClusterParamsAlgBase.h.

70  {
71  return Base_t::second;
72  }
second_as<> second
Type of time stored in seconds, in double precision.
Definition: spacetime.h:85
template<typename T>
Data_t cluster::details::Measure_t< T >::value ( ) const
inline

Definition at line 53 of file ClusterParamsAlgBase.h.

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

Definition at line 58 of file ClusterParamsAlgBase.h.

59  {
60  return Base_t::first;
61  }

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