|
FreeLing
4.0
|
Class condition implements a condition of a CG rule. More...
#include <constraint_grammar.h>

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) | |
Class condition implements a condition of a CG rule.
constructor
| void freeling::condition::clear | ( | ) |
empty condition
| std::list<std::wstring> freeling::condition::get_barrier | ( | ) | const |
get barrier terms
| int freeling::condition::get_pos | ( | ) | const |
get position
| std::list<std::wstring> freeling::condition::get_terms | ( | ) | const |
get terms to check
| bool freeling::condition::has_barrier | ( | ) | const |
find out if there are barrier terms
| bool freeling::condition::has_star | ( | ) | const |
find out whethe position has a "*"
| bool freeling::condition::is_neg | ( | ) | const |
find out whether it is a negative condition
| void freeling::condition::set_barrier | ( | const std::list< std::wstring > & | ) |
set barrier terms list
| void freeling::condition::set_neg | ( | bool | ) |
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
std::list<std::wstring> freeling::condition::barrier [private] |
terms in barrier (if any)
bool freeling::condition::neg [private] |
is it a negative condition?
int freeling::condition::pos [private] |
position to check for
bool freeling::condition::starpos [private] |
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)
1.7.6.1