FreeLing  4.0
Public Types | Static Public Member Functions | Static Private Attributes
freeling::wr_factory Class Reference

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>

Collaboration diagram for freeling::wr_factory:
Collaboration graph
[legend]

List of all members.

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_rulecreate_weak_rule (const std::wstring &type, wr_params *p)
static weak_rulecreate_weak_rule (const std::wstring &type, int nlabels)

Static Private Attributes

static safe_map< std::wstring,
WR_constructor
wr_types

Detailed Description

Class wr_factory is a factory enabling to register new types of weak_rules (provided they are derived from weak_rule class below.


Member Typedef Documentation


Member Function Documentation

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]

Member Data Documentation

safe_map<std::wstring, WR_constructor> freeling::wr_factory::wr_types [static, private]

The documentation for this class was generated from the following file: