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)
 
void operator() (const char *begin, const char *end) const
 
template<typename T >
void operator() (const T &n) 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) {}

Member Function Documentation

◆ operator()() [1/2]

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

Definition at line 23 of file MethodArgumentSetter.h.

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  }

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

◆ operator()() [2/2]

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

Definition at line 20 of file MethodArgumentSetter.h.

20  {
21  stack_.push_back(AnyMethodArgument(n));
22  }

References dqmiodumpmetadata::n, and stack_.

Member Data Documentation

◆ stack_

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

Definition at line 34 of file MethodArgumentSetter.h.

Referenced by operator()().

dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
cms::cuda::assert
assert(be >=bs)
end
#define end
Definition: vmac.h:39
reco::parser::AnyMethodArgument
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
Definition: AnyMethodArgument.h:49
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
svgfig.stack
stack
Definition: svgfig.py:559
reco::parser::MethodArgumentSetter::stack_
MethodArgumentStack & stack_
Definition: MethodArgumentSetter.h:34
begin
#define begin
Definition: vmac.h:32