CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:558

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 stack_.

23  {
24  assert(begin+1 <= end-1); // the quotes are included in [begin,end[ range.
25  stack_.push_back( AnyMethodArgument(std::string(begin+1,end-1)) );
26  }
#define end
Definition: vmac.h:38
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:31

Member Data Documentation

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

Definition at line 28 of file MethodArgumentSetter.h.

Referenced by operator()().