LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Class holding a value of one among some selected types... More...
#include "OverriddenClusterParamsAlg.h"
Public Types | |
using | Measure_t = cluster::details::Measure_t< float > |
Public Member Functions | |
MultiValue () | |
template<typename T > | |
MultiValue & | operator= (T) |
Sets the value from a value of type T; undefined by default. More... | |
template<typename T > | |
operator T () const | |
Converts the value to type T; undefined by default. More... | |
template<> | |
MultiValue & | operator= (size_t value) |
template<> | |
MultiValue & | operator= (float value) |
template<> | |
MultiValue & | operator= (Measure_t value) |
Public Attributes | |
union { | |
Measure_t measure_value | |
float float_value | |
size_t size_t_value | |
}; | |
Class holding a value of one among some selected types...
FIXME: If this functionality is necessary, it should be replaced with std::variant.
Definition at line 30 of file OverriddenClusterParamsAlg.h.
Definition at line 32 of file OverriddenClusterParamsAlg.h.
|
inline |
Default constructor; it's here only to allow for vectors to be resized and its effect is undefined. This class is not to be considered valid until it's assigned a value with the operator= .
Definition at line 43 of file OverriddenClusterParamsAlg.h.
References operator=().
cluster::details::MultiValue::operator T | ( | ) | const |
Converts the value to type T; undefined by default.
MultiValue& cluster::details::MultiValue::operator= | ( | T | ) |
Sets the value from a value of type T; undefined by default.
Referenced by MultiValue().
MultiValue& cluster::details::MultiValue::operator= | ( | size_t | value | ) |
Definition at line 330 of file OverriddenClusterParamsAlg.h.
References size_t_value, and value.
MultiValue& cluster::details::MultiValue::operator= | ( | float | value | ) |
Definition at line 344 of file OverriddenClusterParamsAlg.h.
References float_value, and value.
MultiValue& cluster::details::MultiValue::operator= | ( | Measure_t | value | ) |
Definition at line 358 of file OverriddenClusterParamsAlg.h.
References measure_value, and value.
union { ... } |
float cluster::details::MultiValue::float_value |
Definition at line 36 of file OverriddenClusterParamsAlg.h.
Referenced by operator=().
Measure_t cluster::details::MultiValue::measure_value |
Definition at line 35 of file OverriddenClusterParamsAlg.h.
Referenced by operator=().
size_t cluster::details::MultiValue::size_t_value |
Definition at line 37 of file OverriddenClusterParamsAlg.h.
Referenced by operator=().