| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

my_do_custom< T > Struct Template Reference

Inheritance diagram for my_do_custom< T >:
[legend]
Collaboration diagram for my_do_custom< T >:
[legend]
List of all members.

Public Member Functions

 my_do_custom (ParserStore &rp, const ParameterDescription &par, int which_operator, bool param_on_left)
void operator() (char const *, char const *) const

Public Attributes

const ParameterDescriptionm_par
int m_which_operator
bool m_param_on_left
ParserStorem_store

Detailed Description

template<typename T>
struct my_do_custom< T >

Definition at line 199 of file CreateRules.cc.


Constructor & Destructor Documentation

template<typename T>
my_do_custom< T >::my_do_custom ( ParserStore rp,
const ParameterDescription par,
int  which_operator,
bool  param_on_left 
) [inline]

Definition at line 201 of file CreateRules.cc.

00205           : mySemantic(rp)
00206           , m_par(par)
00207           , m_which_operator(which_operator)
00208           , m_param_on_left(param_on_left){};


Member Function Documentation

template<typename T>
void my_do_custom< T >::operator() ( char const *  ,
char const *   
) const [inline]

Definition at line 214 of file CreateRules.cc.

00214                                                    {
00215       // This is a custom rule provided by the user. Call on his/her RuleFactor to make it.
00216     T val;
00217     m_store.popval(val);
00218 
00219     assert(m_par.factory());
00220     Rule* rule = m_par.factory()->createRule(m_par, m_which_operator, val, m_param_on_left);
00221 
00222     assert(rule);
00223     m_store.mStackRules.push(rule);
00224     //cout << "STACK custom rule " << typeid(*rule).name() << "  \"" << rule->name() << "\"" << endl;         
00225   }


Member Data Documentation

template<typename T>
const ParameterDescription& my_do_custom< T >::m_par

Definition at line 208 of file CreateRules.cc.

template<typename T>
int my_do_custom< T >::m_which_operator

Definition at line 211 of file CreateRules.cc.

template<typename T>
bool my_do_custom< T >::m_param_on_left

Definition at line 212 of file CreateRules.cc.

ParserStore& mySemantic::m_store [inherited]

Definition at line 82 of file CreateRules.cc.


The documentation for this struct was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:09:14 2011 for RuleParser by doxygen 1.4.7