#include <AnyMethodArgument.h>
Definition at line 47 of file AnyMethodArgument.h.
◆ AnyMethodArgumentFixup()
reco::parser::AnyMethodArgumentFixup::AnyMethodArgumentFixup |
( |
const edm::TypeWithDict & |
type | ) |
|
|
inline |
◆ doInt()
std::pair<AnyMethodArgument, int> reco::parser::AnyMethodArgumentFixup::doInt |
( |
int |
t | ) |
const |
|
inlineprivate |
Definition at line 56 of file AnyMethodArgument.h.
58 return retOk_<int, int8_t>(
t, 0);
61 return retOk_<int, uint8_t>(
t, 0);
64 return retOk_<int, int16_t>(
t, 0);
67 return retOk_<int, uint16_t>(
t, 0);
70 return retOk_<int, int32_t>(
t, 0);
73 return retOk_<int, uint32_t>(
t, 0);
76 return retOk_<int, int64_t>(
t, 0);
79 return retOk_<int, uint64_t>(
t, 0);
82 return retOk_<int, unsigned long>(
t, 0);
85 return retOk_<int, double>(
t, 1);
88 return retOk_<int, float>(
t, 1);
90 return std::pair<AnyMethodArgument, int>(
t, -1);
References dataType_, and submitPVValidationJobs::t.
Referenced by operator()().
◆ operator()() [1/3]
template<typename F >
std::enable_if<std::is_floating_point<F>::value, std::pair<AnyMethodArgument, int> >::type reco::parser::AnyMethodArgumentFixup::operator() |
( |
const F & |
t | ) |
const |
|
inline |
◆ operator()() [2/3]
template<typename I >
std::enable_if<std::is_integral<I>::value, std::pair<AnyMethodArgument, int> >::type reco::parser::AnyMethodArgumentFixup::operator() |
( |
const I & |
t | ) |
const |
|
inline |
◆ operator()() [3/3]
std::pair<AnyMethodArgument, int> reco::parser::AnyMethodArgumentFixup::operator() |
( |
const std::string & |
t | ) |
const |
|
inline |
Definition at line 115 of file AnyMethodArgument.h.
119 <<
"Enumerator '" <<
dataType_.
name() <<
"' has no keys.\nPerhaps the dictionary is missing?\n";
123 return std::pair<AnyMethodArgument, int>(ival, 1);
126 return std::pair<AnyMethodArgument, int>(
t, 0);
128 return std::pair<AnyMethodArgument, int>(
t, -1);
References edm::TypeWithDict::dataMemberSize(), dataType_, Exception, edm::TypeWithDict::isEnum(), edm::TypeWithDict::name(), AlCaHLTBitMon_QueryRunRegistry::string, edm::TypeWithDict::stringToEnumValue(), and submitPVValidationJobs::t.
◆ retOk_()
template<typename From , typename To >
std::pair<AnyMethodArgument, int> reco::parser::AnyMethodArgumentFixup::retOk_ |
( |
const From & |
f, |
|
|
int |
cast |
|
) |
| const |
|
inlineprivate |
◆ dataType_
std::conditional< matches_another_integral_type< unsigned long >::value, std::variant< int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t, double, float, std::string >, std::variant< int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t, unsigned long, double, float, std::string > >::type AnyMethodArgument