R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3B::ValueError< DataType > Struct Template Reference

#include <R3BValueError.h>

Public Member Functions

 ValueError (const DataType &val, const DataType &err)
 
 ValueError ()
 
auto operator- () const -> ValueError< DataType >
 
template<typename OtherType, typename = std::enable_if_t<std::is_arithmetic_v<OtherType>>>
auto operator+ (OtherType other) const -> ValueError< DataType >
 
template<typename OtherType, typename = std::enable_if_t<std::is_arithmetic_v<OtherType>>>
auto operator* (OtherType other) const -> ValueError< DataType >
 
template<typename OtherType, typename = std::enable_if_t<std::is_arithmetic_v<OtherType>>>
auto operator/ (OtherType other) const -> ValueError< DataType >
 
template<typename OtherType, typename = std::enable_if_t<std::is_arithmetic_v<OtherType>>>
auto operator- (OtherType val) const -> ValueError< DataType >
 
template<typename OtherType, typename = std::enable_if_t<std::is_arithmetic_v<OtherType>>>
void operator-= (OtherType other)
 
 ClassDefNV (ValueError, 1)
 

Public Attributes

bool valid = true
 
DataType value {}
 
DataType error {}
 

Detailed Description

template<typename DataType>
struct R3B::ValueError< DataType >

Definition at line 22 of file R3BValueError.h.

Constructor & Destructor Documentation

◆ ValueError() [1/2]

template<typename DataType>
R3B::ValueError< DataType >::ValueError ( const DataType & val,
const DataType & err )
inline

Definition at line 28 of file R3BValueError.h.

◆ ValueError() [2/2]

template<typename DataType>
R3B::ValueError< DataType >::ValueError ( )
inline

Definition at line 34 of file R3BValueError.h.

Member Function Documentation

◆ ClassDefNV()

template<typename DataType>
R3B::ValueError< DataType >::ClassDefNV ( ValueError< DataType > ,
1  )

◆ operator*()

template<typename DataType>
template<typename OtherType, typename = std::enable_if_t<std::is_arithmetic_v<OtherType>>>
auto R3B::ValueError< DataType >::operator* ( OtherType other) const -> ValueError<DataType>
inline

Definition at line 48 of file R3BValueError.h.

◆ operator+()

template<typename DataType>
template<typename OtherType, typename = std::enable_if_t<std::is_arithmetic_v<OtherType>>>
auto R3B::ValueError< DataType >::operator+ ( OtherType other) const -> ValueError<DataType>
inline

Definition at line 42 of file R3BValueError.h.

◆ operator-() [1/2]

template<typename DataType>
auto R3B::ValueError< DataType >::operator- ( ) const -> ValueError<DataType>
inline

Definition at line 39 of file R3BValueError.h.

◆ operator-() [2/2]

template<typename DataType>
template<typename OtherType, typename = std::enable_if_t<std::is_arithmetic_v<OtherType>>>
auto R3B::ValueError< DataType >::operator- ( OtherType val) const -> ValueError<DataType>
inline

Definition at line 60 of file R3BValueError.h.

◆ operator-=()

template<typename DataType>
template<typename OtherType, typename = std::enable_if_t<std::is_arithmetic_v<OtherType>>>
void R3B::ValueError< DataType >::operator-= ( OtherType other)
inline

Definition at line 66 of file R3BValueError.h.

◆ operator/()

template<typename DataType>
template<typename OtherType, typename = std::enable_if_t<std::is_arithmetic_v<OtherType>>>
auto R3B::ValueError< DataType >::operator/ ( OtherType other) const -> ValueError<DataType>
inline

Definition at line 54 of file R3BValueError.h.

Member Data Documentation

◆ error

template<typename DataType>
DataType R3B::ValueError< DataType >::error {}

Definition at line 26 of file R3BValueError.h.

◆ valid

template<typename DataType>
bool R3B::ValueError< DataType >::valid = true

Definition at line 24 of file R3BValueError.h.

◆ value

template<typename DataType>
DataType R3B::ValueError< DataType >::value {}

Definition at line 25 of file R3BValueError.h.


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