#include <constraint_grammar.h>
Collaboration diagram for condition:
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) |
|
constructor
|
|
empty condition
|
|
get barrier terms
|
|
get position
|
|
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
|
|
set barrier terms list
|
|
set negative condition flag
|
|
set position value
|
|
set terms list
|
|
terms in barrier (if any)
|
|
is it a negative condition?
|
|
position to check for
|
|
star in the position
|
|
terms ORed in the condition (each term is a <lemma>, (form), or TAG)
|