Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

rule Class Reference

Class rule implements a rule of a grammar. More...

#include <grammar.h>

Inheritance diagram for rule:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 rule (const string &, const list< string > &, const int)
 Constructors of the subclass rule.
 rule (const rule &r)
 rule ()
ruleoperator= (const rule &)
void set_governor (const int)
 set rule governor
unsigned int get_governor (void) const
 get rule governor
string get_head () const
 get rule head.
list< string > get_right () const
 get right part of the rule.

Protected Attributes

string head
 Head of the rule.
list< string > right
 Right part of the rule.
int gov
 Position of the rule Governor of.

Detailed Description

Class rule implements a rule of a grammar.


Constructor & Destructor Documentation

rule::rule const string &  ,
const list< string > &  ,
const   int
 

Constructors of the subclass rule.

rule::rule const rule r  ) 
 

rule::rule  ) 
 


Member Function Documentation

unsigned int rule::get_governor void   )  const
 

get rule governor

string rule::get_head  )  const
 

get rule head.

list<string> rule::get_right  )  const
 

get right part of the rule.

rule& rule::operator= const rule  ) 
 

void rule::set_governor const   int  ) 
 

set rule governor


Member Data Documentation

int rule::gov [protected]
 

Position of the rule Governor of.

string rule::head [protected]
 

Head of the rule.

list<string> rule::right [protected]
 

Right part of the rule.


The documentation for this class was generated from the following file:
Generated on Wed Apr 26 12:58:54 2006 for FreeLing by  doxygen 1.4.4