CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::parser::MethodArgumentSetter Struct Reference

#include <MethodArgumentSetter.h>

Public Member Functions

 MethodArgumentSetter (MethodArgumentStack &stack)
 
template<typename T >
void operator() (const T &n) const
 
void operator() (const char *begin, const char *end) const
 

Private Attributes

MethodArgumentStackstack_
 

Detailed Description

Definition at line 17 of file MethodArgumentSetter.h.

Constructor & Destructor Documentation

◆ MethodArgumentSetter()

reco::parser::MethodArgumentSetter::MethodArgumentSetter ( MethodArgumentStack stack)
inline

Definition at line 18 of file MethodArgumentSetter.h.

18 : stack_(stack) {}
stack
Definition: svgfig.py:559

Member Function Documentation

◆ operator()() [1/2]

template<typename T >
void reco::parser::MethodArgumentSetter::operator() ( const T n) const
inline

Definition at line 20 of file MethodArgumentSetter.h.

References dqmiodumpmetadata::n, and stack_.

20  {
21  stack_.push_back(AnyMethodArgument(n));
22  }
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

◆ operator()() [2/2]

void reco::parser::MethodArgumentSetter::operator() ( const char *  begin,
const char *  end 
) const
inline

Definition at line 23 of file MethodArgumentSetter.h.

References cms::cuda::assert(), stack_, and AlCaHLTBitMon_QueryRunRegistry::string.

23  {
24  assert(begin + 1 <= end - 1); // the quotes are included in [begin,end[ range.
25  //in boost 1.67, the parser appends any extra white space to the
26  // end
27  if (*(end - 1) != *begin) {
28  --end;
29  }
30  stack_.push_back(AnyMethodArgument(std::string(begin + 1, end - 1)));
31  }
assert(be >=bs)
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

Member Data Documentation

◆ stack_

MethodArgumentStack& reco::parser::MethodArgumentSetter::stack_
private

Definition at line 34 of file MethodArgumentSetter.h.

Referenced by operator()().