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

In This Package:

my_do_and Struct Reference

Inheritance diagram for my_do_and:
[legend]
Collaboration diagram for my_do_and:
[legend]
List of all members.

Public Member Functions

 my_do_and (ParserStore &rp)
void operator() (char const *a, char const *b) const

Public Attributes

ParserStorem_store

Detailed Description

Definition at line 228 of file CreateRules.cc.


Constructor & Destructor Documentation

my_do_and::my_do_and ( ParserStore rp  )  [inline]

Definition at line 230 of file CreateRules.cc.

00230 : mySemantic(rp) {};


Member Function Documentation

void my_do_and::operator() ( char const *  a,
char const *  b 
) const [inline]

Definition at line 231 of file CreateRules.cc.

00231                                                      {
00232 
00233     //cout<<"string a: "<<a<<endl;
00234     //cout<<"string b: "<<b<<endl;
00235 
00236     string s(a,b);
00237 
00238     assert(m_store.mStackRules.size()>=2);
00239     Rule* rule2 = m_store.mStackRules.top();
00240     m_store.mStackRules.pop();
00241 
00242     Rule* rule1 = m_store.mStackRules.top();
00243     m_store.mStackRules.pop();
00244 
00245     string name=rule1->name();
00246     name.append(" ");
00247     name.append(s);
00248 
00249     Rule* outRule = new AndRule(name,rule1,rule2);
00250     //cout << "STACK and-rule composed of " << rule1->name() << " and " << rule2->name() << std::endl;
00251 
00252     m_store.mStackRules.push(outRule);
00253   }    


Member Data Documentation

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