Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Kodu::ParsedRule Class Reference

#include <ParsedRule.h>


Detailed Description

Definition at line 8 of file ParsedRule.h.

List of all members.

Public Member Functions

 ParsedRule ()
 Constructor.
 ParsedRule (const ParsedRule &kRule)
 Copy Constructor.
 ~ParsedRule ()
 Destructor.
ParsedRuleoperator= (const ParsedRule &kRule)
 Assignment operator.
ParsedPhrasegetActionPhrase ()
 Returns the action phrase.
ParsedPhrasegetConditionPhrase ()
 Returns the condition phrase.
unsigned int getIndentationLevel ()
 Returns this rule's indentation level.
unsigned int getParentNumber ()
 Returns this rule's parent number (a rule id).
unsigned int getRuleNumber ()
 Returns this rule's id (number).
bool setActionPhrase (ParsedPhrase *actionPhrase)
 Sets this rule's action phrase.
bool setConditionPhrase (ParsedPhrase *conditionPhrase)
 Sets this rule's condition phrase.
void setIndentationLevel (unsigned int amount)
 Sets this rule's indentation level.
void setParentNumber (unsigned int parentId)
 Sets this rule's parent number (a rule id).
void setRuleNumber (unsigned int ruleId)
 Sets this rule's id (number).

Private Attributes

unsigned int indentationLevel
unsigned int ruleNumber
unsigned int parentNumber
ParsedPhrasecondition
ParsedPhraseaction

Constructor & Destructor Documentation

Kodu::ParsedRule::ParsedRule (  ) 

Constructor.

Definition at line 18 of file ParsedRule.h.

Kodu::ParsedRule::ParsedRule ( const ParsedRule kRule  )  [explicit]

Copy Constructor.

Definition at line 24 of file ParsedRule.h.

Kodu::ParsedRule::~ParsedRule (  ) 

Destructor.

Definition at line 30 of file ParsedRule.h.


Member Function Documentation

ParsedPhrase * Kodu::ParsedRule::getActionPhrase (  ) 

Returns the action phrase.

Definition at line 5 of file ParsedRule.cc.

Referenced by Kodu::Parser::KodeCreator::createKode().

ParsedPhrase * Kodu::ParsedRule::getConditionPhrase (  ) 

Returns the condition phrase.

Definition at line 9 of file ParsedRule.cc.

Referenced by Kodu::Parser::KodeCreator::createKode().

unsigned int Kodu::ParsedRule::getIndentationLevel (  ) 

Returns this rule's indentation level.

Definition at line 13 of file ParsedRule.cc.

Referenced by Kodu::Parser::TokenParser::parseTokens().

unsigned int Kodu::ParsedRule::getParentNumber (  ) 

Returns this rule's parent number (a rule id).

Definition at line 17 of file ParsedRule.cc.

Referenced by Kodu::Parser::KodeCreator::createKode().

unsigned int Kodu::ParsedRule::getRuleNumber (  ) 

Returns this rule's id (number).

Definition at line 21 of file ParsedRule.cc.

Referenced by Kodu::Parser::KodeCreator::createKode().

ParsedRule& Kodu::ParsedRule::operator= ( const ParsedRule kRule  ) 

Assignment operator.

Definition at line 42 of file ParsedRule.h.

bool Kodu::ParsedRule::setActionPhrase ( ParsedPhrase actionPhrase  ) 

Sets this rule's action phrase.

Definition at line 25 of file ParsedRule.cc.

Referenced by Kodu::Parser::TokenParser::parseTokens().

bool Kodu::ParsedRule::setConditionPhrase ( ParsedPhrase conditionPhrase  ) 

Sets this rule's condition phrase.

Definition at line 32 of file ParsedRule.cc.

Referenced by Kodu::Parser::TokenParser::parseTokens().

void Kodu::ParsedRule::setIndentationLevel ( unsigned int  amount  ) 

Sets this rule's indentation level.

Definition at line 39 of file ParsedRule.cc.

Referenced by Kodu::Parser::TokenParser::parseTokens().

void Kodu::ParsedRule::setParentNumber ( unsigned int  parentId  ) 

Sets this rule's parent number (a rule id).

Definition at line 43 of file ParsedRule.cc.

Referenced by Kodu::Parser::TokenParser::parseTokens().

void Kodu::ParsedRule::setRuleNumber ( unsigned int  ruleId  ) 

Sets this rule's id (number).

Definition at line 47 of file ParsedRule.cc.

Referenced by Kodu::Parser::TokenParser::parseTokens().


Member Data Documentation

unsigned int Kodu::ParsedRule::indentationLevel [private]

Definition at line 10 of file ParsedRule.h.

Referenced by getIndentationLevel(), operator=(), and setIndentationLevel().

unsigned int Kodu::ParsedRule::parentNumber [private]

Definition at line 12 of file ParsedRule.h.

Referenced by getParentNumber(), operator=(), and setParentNumber().

unsigned int Kodu::ParsedRule::ruleNumber [private]

Definition at line 11 of file ParsedRule.h.

Referenced by getRuleNumber(), operator=(), and setRuleNumber().


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

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