FreeLing
4.0
|
Class wr_factory is a factory enabling to register new types of weak_rules (provided they are derived from weak_rule class below. More...
#include <weakrule.h>
Public Types | |
typedef weak_rule *(* | WR_constructor )(wr_params *) |
Static Public Member Functions | |
static void | initialize () |
static bool | register_weak_rule_type (const std::wstring &type, WR_constructor builder) |
static bool | unregister_weak_rule_type (const std::wstring &type) |
static weak_rule * | create_weak_rule (const std::wstring &type, wr_params *p) |
static weak_rule * | create_weak_rule (const std::wstring &type, int nlabels) |
Static Private Attributes | |
static safe_map< std::wstring, WR_constructor > | wr_types |
Class wr_factory is a factory enabling to register new types of weak_rules (provided they are derived from weak_rule class below.
typedef weak_rule*(* freeling::wr_factory::WR_constructor)(wr_params *) |
static weak_rule* freeling::wr_factory::create_weak_rule | ( | const std::wstring & | type, |
wr_params * | p | ||
) | [static] |
static weak_rule* freeling::wr_factory::create_weak_rule | ( | const std::wstring & | type, |
int | nlabels | ||
) | [static] |
static void freeling::wr_factory::initialize | ( | ) | [static] |
static bool freeling::wr_factory::register_weak_rule_type | ( | const std::wstring & | type, |
WR_constructor | builder | ||
) | [static] |
static bool freeling::wr_factory::unregister_weak_rule_type | ( | const std::wstring & | type | ) | [static] |
safe_map<std::wstring, WR_constructor> freeling::wr_factory::wr_types [static, private] |