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

condition Class Reference

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

#include <constraint_grammar.h>

Collaboration diagram for condition:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 condition ()
 constructor
void clear ()
 empty condition
void set_neg (bool)
 set negative condition flag
void set_pos (int, bool)
 set position value
void set_terms (const list< string > &)
 set terms list
void set_barrier (const list< string > &)
 set barrier terms list
bool is_neg () const
 find out whether it is a negative condition
int get_pos () const
 get position
bool has_star () const
 find out whethe position has a "*"
list< string > get_terms () const
 get terms to check
bool has_barrier () const
 find out if there are barrier terms
list< string > get_barrier () const
 get barrier terms

Private Attributes

bool neg
 is it a negative condition?
int pos
 position to check for
bool starpos
 star in the position
list< string > terms
 terms ORed in the condition (each term is a <lemma>, (form), or TAG)
list< string > barrier
 terms in barrier (if any)

Detailed Description

Class condition implements a condition of a CG rule.


Constructor & Destructor Documentation

condition::condition  ) 
 

constructor


Member Function Documentation

void condition::clear  ) 
 

empty condition

list<string> condition::get_barrier  )  const
 

get barrier terms

int condition::get_pos  )  const
 

get position

list<string> condition::get_terms  )  const
 

get terms to check

bool condition::has_barrier  )  const
 

find out if there are barrier terms

bool condition::has_star  )  const
 

find out whethe position has a "*"

bool condition::is_neg  )  const
 

find out whether it is a negative condition

void condition::set_barrier const list< string > &   ) 
 

set barrier terms list

void condition::set_neg bool   ) 
 

set negative condition flag

void condition::set_pos int  ,
bool 
 

set position value

void condition::set_terms const list< string > &   ) 
 

set terms list


Member Data Documentation

list<string> condition::barrier [private]
 

terms in barrier (if any)

bool condition::neg [private]
 

is it a negative condition?

int condition::pos [private]
 

position to check for

bool condition::starpos [private]
 

star in the position

list<string> condition::terms [private]
 

terms ORed in the condition (each term is a <lemma>, (form), or TAG)


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