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

ruleCG Class Reference

Class rule implements a rule of a CG. More...

#include <constraint_grammar.h>

Inheritance diagram for ruleCG:

Inheritance graph
[legend]
Collaboration diagram for ruleCG:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ruleCG ()
 Constructors of the subclass rule.
void set_head (const string &)
 set rule head.
void set_weight (double)
 set rule compatibility.
string get_head () const
 get rule head.
double get_weight () const
 set rule compatibility.

Protected Attributes

double weight
 compatibility value
string head
 Head of the rule.

Detailed Description

Class rule implements a rule of a CG.


Constructor & Destructor Documentation

ruleCG::ruleCG  ) 
 

Constructors of the subclass rule.


Member Function Documentation

string ruleCG::get_head  )  const
 

get rule head.

double ruleCG::get_weight  )  const
 

set rule compatibility.

void ruleCG::set_head const string &   ) 
 

set rule head.

void ruleCG::set_weight double   ) 
 

set rule compatibility.


Member Data Documentation

string ruleCG::head [protected]
 

Head of the rule.

double ruleCG::weight [protected]
 

compatibility value


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