LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
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 33 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 34 of file ClusterParamsAlgBase.h.

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

Definition at line 36 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 39 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 42 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 45 of file ClusterParamsAlgBase.h.

Member Function Documentation

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

Definition at line 50 of file ClusterParamsAlgBase.h.

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

Definition at line 51 of file ClusterParamsAlgBase.h.

51 { return Base_t::second; }
template<typename T>
Data_t& cluster::details::Measure_t< T >::value ( )
inline

Definition at line 48 of file ClusterParamsAlgBase.h.

48 { return Base_t::first; }

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