condition Class Reference

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

#include <constraint_grammar.h>

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 std::list< std::string > &)
 set terms list
void set_barrier (const std::list< std::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 "*"
std::list< std::string > get_terms () const
 get terms to check
bool has_barrier () const
 find out if there are barrier terms
std::list< std::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
std::list< std::string > terms
 terms ORed in the condition (each term is a <lemma>, (form), or TAG)
std::list< std::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

std::list<std::string> condition::get_barrier (  )  const

get barrier terms

int condition::get_pos (  )  const

get position

std::list<std::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 std::list< std::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 std::list< std::string > &   ) 

set terms list


Member Data Documentation

std::list<std::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

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