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

In This Package:

RuleParser::LE_Rule< Type > Class Template Reference

Less-than or equal-to than rule - is parameter less than cut? More...

#include <Rules.h>

Inheritance diagram for RuleParser::LE_Rule< Type >:

[legend]
Collaboration diagram for RuleParser::LE_Rule< Type >:
[legend]
List of all members.

Public Member Functions

 LE_Rule (std::string n, int whichParam, Type value)
virtual ~LE_Rule ()
virtual bool select (const Queriable *thing)
virtual const std::string & name () const

Protected Attributes

int mParameterId
Type mCut
std::string m_name
RulemA
RulemB

Detailed Description

template<typename Type>
class RuleParser::LE_Rule< Type >

Less-than or equal-to than rule - is parameter less than cut?

Definition at line 161 of file Rules.h.


Constructor & Destructor Documentation

template<typename Type>
RuleParser::LE_Rule< Type >::LE_Rule ( std::string  n,
int  whichParam,
Type  value 
) [inline]

Definition at line 165 of file Rules.h.

00167         : Rule(n) 
00168         , mParameterId(whichParam),mCut(value) {};

template<typename Type>
virtual RuleParser::LE_Rule< Type >::~LE_Rule (  )  [inline, virtual]

Definition at line 169 of file Rules.h.

00169 {};


Member Function Documentation

template<typename Type>
virtual bool RuleParser::LE_Rule< Type >::select ( const Queriable thing  )  [inline, virtual]

Implements RuleParser::Rule.

Definition at line 170 of file Rules.h.

00170                                               {
00171     Type value;
00172     thing->queryParam(mParameterId,value); 
00173     if(value <= mCut) return true;
00174     return false;
00175   }

virtual const std::string& RuleParser::Rule::name (  )  const [inline, virtual, inherited]

Definition at line 25 of file Rules.h.

00025 { return m_name; };


Member Data Documentation

template<typename Type>
int RuleParser::LE_Rule< Type >::mParameterId [protected]

Definition at line 177 of file Rules.h.

template<typename Type>
Type RuleParser::LE_Rule< Type >::mCut [protected]

Definition at line 178 of file Rules.h.

std::string RuleParser::Rule::m_name [protected, inherited]

Definition at line 30 of file Rules.h.

Rule* RuleParser::Rule::mA [protected, inherited]

Definition at line 32 of file Rules.h.

Rule* RuleParser::Rule::mB [protected, inherited]

Definition at line 33 of file Rules.h.


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

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