#include <AnyMethodArgument.h>
Definition at line 51 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 60 of file AnyMethodArgument.h.
62 return retOk_<int, int8_t>(
t, 0);
65 return retOk_<int, uint8_t>(
t, 0);
68 return retOk_<int, int16_t>(
t, 0);
71 return retOk_<int, uint16_t>(
t, 0);
74 return retOk_<int, int32_t>(
t, 0);
77 return retOk_<int, uint32_t>(
t, 0);
80 return retOk_<int, int64_t>(
t, 0);
83 return retOk_<int, uint64_t>(
t, 0);
86 return retOk_<int, unsigned long>(
t, 0);
89 return retOk_<int, double>(
t, 1);
92 return retOk_<int, float>(
t, 1);
94 return std::pair<AnyMethodArgument, int>(
t, -1);
References dataType_, and OrderedSet::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 119 of file AnyMethodArgument.h.
123 <<
"Enumerator '" <<
dataType_.
name() <<
"' has no keys.\nPerhaps the dictionary is missing?\n";
127 return std::pair<AnyMethodArgument, int>(ival, 1);
130 return std::pair<AnyMethodArgument, int>(
t, 0);
132 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 OrderedSet::t.
◆ retOk_()
template<typename From , typename To >
std::pair<AnyMethodArgument, int> reco::parser::AnyMethodArgumentFixup::retOk_ |
( |
const From & |
f, |
|
|
int |
cast |
|
) |
| const |
|
inlineprivate |
◆ dataType_
boost::mpl::if_< matches_another_integral_type< unsigned long >, boost::variant< int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t, double, float, std::string >, boost::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