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 std::string &)
 set rule head.
void set_weight (double)
 set rule compatibility.
std::string get_head () const
 get rule head.
double get_weight () const
 set rule compatibility.

Protected Attributes

double weight
 compatibility value
std::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

std::string ruleCG::get_head (  )  const

get rule head.

double ruleCG::get_weight (  )  const

set rule compatibility.

void ruleCG::set_head ( const std::string &   ) 

set rule head.

void ruleCG::set_weight ( double   ) 

set rule compatibility.


Member Data Documentation

std::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 Tue Jul 27 16:29:33 2010 for FreeLing by  doxygen 1.6.3