FreeLing  3.0
Public Types | Static Public Member Functions | Static Private Attributes
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>

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 std::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* wr_factory::create_weak_rule ( const std::wstring &  type,
wr_params p 
) [static]
static weak_rule* wr_factory::create_weak_rule ( const std::wstring &  type,
int  nlabels 
) [static]
static void wr_factory::initialize ( ) [static]
static bool wr_factory::register_weak_rule_type ( const std::wstring &  type,
WR_constructor  builder 
) [static]
static bool wr_factory::unregister_weak_rule_type ( const std::wstring &  type) [static]

Member Data Documentation

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

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