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

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

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

Definition at line 20 of file MethodArgumentSetter.h.

References stack_.

20  {
21  stack_.push_back( AnyMethodArgument(n) );
22  }
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
void reco::parser::MethodArgumentSetter::operator() ( const char *  begin,
const char *  end 
) const
inline

Definition at line 23 of file MethodArgumentSetter.h.

References end, 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  }
#define end
Definition: vmac.h:39
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
#define begin
Definition: vmac.h:32

Member Data Documentation

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

Definition at line 33 of file MethodArgumentSetter.h.

Referenced by operator()().