Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Kodu::KoduRule Class Reference

Kodu Rule. More...

#include <KoduRule.h>


Detailed Description

Kodu Rule.

Definition at line 10 of file KoduRule.h.

List of all members.

Public Member Functions

 KoduRule (unsigned int kRuleNumber, unsigned int kParent)
 Constructor.
 ~KoduRule ()
 Destructor.
unsigned int getRuleNumber () const
 Get the rule number.
unsigned int getParentNumber () const
 Get the parent number.
bool isIndented () const
 Returns whether or not a rule is indented.
void reinitializePrimitives ()
 Reinitializes a rule's primitives.
void setConditionEvalResult (bool bVal)
 Sets the condition evaluation result.

Public Attributes

unsigned int ruleNumber
 Rule number.
unsigned int parent
 Parent rule (assigned during program parsing).
KoduConditioncondition
 Condition to evaluate.
KoduActionaction
 Action to execute.
bool condLastEvalResult
 Evaluation result for a condition (true|false).

Private Member Functions

 DISALLOW_COPY_ASSIGN (KoduRule)

Constructor & Destructor Documentation

Kodu::KoduRule::KoduRule ( unsigned int  kRuleNumber,
unsigned int  kParent 
)

Constructor.

Definition at line 19 of file KoduRule.h.

Kodu::KoduRule::~KoduRule (  ) 

Destructor.

Definition at line 28 of file KoduRule.h.


Member Function Documentation

Kodu::KoduRule::DISALLOW_COPY_ASSIGN ( KoduRule   )  [private]
unsigned int Kodu::KoduRule::getParentNumber (  )  const
unsigned int Kodu::KoduRule::getRuleNumber (  )  const

Get the rule number.

Definition at line 34 of file KoduRule.h.

Referenced by KoduInterpreter::KoduConditionEvaluator::doStart().

bool Kodu::KoduRule::isIndented (  )  const

Returns whether or not a rule is indented.

Definition at line 44 of file KoduRule.h.

Referenced by KoduInterpreter::KoduConditionEvaluator::doStart().

void Kodu::KoduRule::reinitializePrimitives (  ) 

Reinitializes a rule's primitives.

Definition at line 49 of file KoduRule.h.

void Kodu::KoduRule::setConditionEvalResult ( bool  bVal  ) 

Sets the condition evaluation result.

Definition at line 56 of file KoduRule.h.

Referenced by KoduInterpreter::KoduConditionEvaluator::doStart().


Member Data Documentation

Evaluation result for a condition (true|false).

Definition at line 16 of file KoduRule.h.

Referenced by KoduInterpreter::KoduConditionEvaluator::doStart(), reinitializePrimitives(), and setConditionEvalResult().

unsigned int Kodu::KoduRule::parent

Parent rule (assigned during program parsing).

Definition at line 13 of file KoduRule.h.

Referenced by getParentNumber().

Rule number.

Definition at line 12 of file KoduRule.h.

Referenced by getRuleNumber().


The documentation for this class was generated from the following file:

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:23 2016 by Doxygen 1.6.3