FreeLing  4.0
Public Member Functions | Private Attributes
freeling::condition Class Reference

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

#include <constraint_grammar.h>

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

Detailed Description

Class condition implements a condition of a CG rule.


Constructor & Destructor Documentation

constructor


Member Function Documentation

empty condition

std::list<std::wstring> freeling::condition::get_barrier ( ) const

get barrier terms

get position

std::list<std::wstring> freeling::condition::get_terms ( ) const

get terms to check

find out if there are barrier terms

find out whethe position has a "*"

find out whether it is a negative condition

void freeling::condition::set_barrier ( const std::list< std::wstring > &  )

set barrier terms list

set negative condition flag

void freeling::condition::set_pos ( int  ,
bool   
)

set position value

void freeling::condition::set_terms ( const std::list< std::wstring > &  )

set terms list


Member Data Documentation

std::list<std::wstring> freeling::condition::barrier [private]

terms in barrier (if any)

bool freeling::condition::neg [private]

is it a negative condition?

position to check for

star in the position

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