CMS 3D CMS Logo

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

#include <FunctionSetter.h>

Public Member Functions

 FunctionSetter (Function fun, FunctionStack &stack)
 
void operator() (const char *, const char *) const
 

Private Attributes

Function fun_
 
FunctionStackstack_
 

Detailed Description

Definition at line 17 of file FunctionSetter.h.

Constructor & Destructor Documentation

◆ FunctionSetter()

reco::parser::FunctionSetter::FunctionSetter ( Function  fun,
FunctionStack stack 
)
inline

Definition at line 18 of file FunctionSetter.h.

18 : fun_(fun), stack_(stack) {}

Member Function Documentation

◆ operator()()

void reco::parser::FunctionSetter::operator() ( const char *  ,
const char *   
) const
inline

Definition at line 20 of file FunctionSetter.h.

20  {
21 #ifdef BOOST_SPIRIT_DEBUG
22  BOOST_SPIRIT_DEBUG_OUT << "pushing math function: " << functionNames[fun_] << std::endl;
23 #endif
24  stack_.push_back(fun_);
25  }

References fun_, and stack_.

Member Data Documentation

◆ fun_

Function reco::parser::FunctionSetter::fun_
private

Definition at line 28 of file FunctionSetter.h.

Referenced by operator()().

◆ stack_

FunctionStack& reco::parser::FunctionSetter::stack_
private

Definition at line 29 of file FunctionSetter.h.

Referenced by operator()().

reco::parser::FunctionSetter::stack_
FunctionStack & stack_
Definition: FunctionSetter.h:29
svgfig.stack
stack
Definition: svgfig.py:559
reco::parser::FunctionSetter::fun_
Function fun_
Definition: FunctionSetter.h:28