CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::parser::MethodArgumentSetter Struct Reference

#include <MethodArgumentSetter.h>

List of all members.

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

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

Definition at line 18 of file MethodArgumentSetter.h.

: stack_( stack ) { }

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

                                        {
        stack_.push_back( AnyMethodArgument(n) );
      }
void reco::parser::MethodArgumentSetter::operator() ( const char *  begin,
const char *  end 
) const [inline]

Definition at line 23 of file MethodArgumentSetter.h.

References stack_.

                                                                {
        assert(begin+1 <= end-1); // the quotes are included in [begin,end[ range.        
        stack_.push_back( AnyMethodArgument(std::string(begin+1,end-1)) );
      }

Member Data Documentation

Definition at line 28 of file MethodArgumentSetter.h.

Referenced by operator()().