|
FreeLing
3.0
|
Class fex_condition stores a condition to be checked on the target. More...
#include <fex_rule.h>

Public Member Functions | |
| fex_condition () | |
| fex_condition (const std::wstring &, const std::wstring &, const std::wstring &) | |
| constructor, given function, focus, and filename/regex | |
| fex_condition (const fex_condition &) | |
| Copy constructor. | |
| fex_condition & | operator= (const fex_condition &) |
| assignment | |
| bool | check (const word &) |
| evaluate whether a word meets the condition. | |
| bool | is_true () const |
| check whether the condition is "true" (literally) and will match any words. | |
| std::wstring | get_match (int) const |
| get i-th subexpression match of last RE application | |
| void | trace (int) const |
| print condition to stderr in the given tracelevel (debug purposes only) | |
Private Member Functions | |
| std::list< std::wstring > | get_target (const word &) const |
| Obtain the target(s) of a condition. | |
Private Attributes | |
| std::wstring | function |
| function to perform (check Regex, search a file, etc) | |
| std::wstring | focus |
| item on which perform the check (word, lemma, tag, any-tag, etc) | |
| std::wstring | split |
| substring to use as a separator in splits | |
| std::wstring | literal |
| literal to compare against in "is" operations | |
| std::set< std::wstring > * | fileset |
| set file contents (if needed by function) | |
| boost::u32regex | match_re |
| regexp (if needed by function) | |
| boost::wsmatch | re_result |
| substrings matching latest regex application | |
| bool | negated |
| whether the function has a negation | |
| bool | cond_true |
| remember if the rule is trivial | |
Static Private Attributes | |
| static boost::u32regex | split_re |
| auxiliar regexs to parse rules | |
| static std::map< std::wstring, std::set< std::wstring > > | set_files |
| loaded set files (loaded once, may be used by several conditions in different rules) | |
Class fex_condition stores a condition to be checked on the target.
| fex_condition::fex_condition | ( | const std::wstring & | , |
| const std::wstring & | , | ||
| const std::wstring & | |||
| ) |
constructor, given function, focus, and filename/regex
| fex_condition::fex_condition | ( | const fex_condition & | ) |
Copy constructor.
| bool fex_condition::check | ( | const word & | ) |
evaluate whether a word meets the condition.
| std::wstring fex_condition::get_match | ( | int | ) | const |
get i-th subexpression match of last RE application
| std::list<std::wstring> fex_condition::get_target | ( | const word & | ) | const [private] |
Obtain the target(s) of a condition.
| bool fex_condition::is_true | ( | ) | const |
check whether the condition is "true" (literally) and will match any words.
| fex_condition& fex_condition::operator= | ( | const fex_condition & | ) |
assignment
| void fex_condition::trace | ( | int | ) | const |
print condition to stderr in the given tracelevel (debug purposes only)
bool fex_condition::cond_true [private] |
remember if the rule is trivial
std::set<std::wstring>* fex_condition::fileset [private] |
set file contents (if needed by function)
std::wstring fex_condition::focus [private] |
item on which perform the check (word, lemma, tag, any-tag, etc)
std::wstring fex_condition::function [private] |
function to perform (check Regex, search a file, etc)
std::wstring fex_condition::literal [private] |
literal to compare against in "is" operations
boost::u32regex fex_condition::match_re [private] |
regexp (if needed by function)
bool fex_condition::negated [private] |
whether the function has a negation
boost::wsmatch fex_condition::re_result [private] |
substrings matching latest regex application
std::map<std::wstring, std::set<std::wstring> > fex_condition::set_files [static, private] |
loaded set files (loaded once, may be used by several conditions in different rules)
std::wstring fex_condition::split [private] |
substring to use as a separator in splits
boost::u32regex fex_condition::split_re [static, private] |
auxiliar regexs to parse rules
1.7.6.1