#include <PrescaleRule.h>
Inheritance diagram for RuleParser::PrescaleRule:
Public Member Functions | |
PrescaleRule (std::string n, unsigned int interval) | |
virtual | ~PrescaleRule () |
virtual bool | select (const Queriable *) |
virtual const std::string & | name () const |
Protected Attributes | |
std::string | m_name |
Rule * | mA |
Rule * | mB |
Private Attributes | |
unsigned int | m_interval |
unsigned int | m_cycle |
Definition at line 21 of file PrescaleRule.h.
RuleParser::PrescaleRule::PrescaleRule | ( | std::string | n, | |
unsigned int | interval | |||
) | [inline] |
virtual RuleParser::PrescaleRule::~PrescaleRule | ( | ) | [inline, virtual] |
virtual bool RuleParser::PrescaleRule::select | ( | const Queriable * | ) | [inline, virtual] |
Implements RuleParser::Rule.
Definition at line 28 of file PrescaleRule.h.
00029 { 00030 if( ( (m_cycle++)%m_interval ) ==0) return true; 00031 return false; 00032 };
virtual const std::string& RuleParser::Rule::name | ( | ) | const [inline, virtual, inherited] |
unsigned int RuleParser::PrescaleRule::m_interval [private] |
Definition at line 32 of file PrescaleRule.h.
unsigned int RuleParser::PrescaleRule::m_cycle [private] |
Definition at line 36 of file PrescaleRule.h.
std::string RuleParser::Rule::m_name [protected, inherited] |
Rule* RuleParser::Rule::mA [protected, inherited] |
Rule* RuleParser::Rule::mB [protected, inherited] |