Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
reranker::FactoryBase Class Referenceabstract

An interface for all Factory instances, specifying a few pure virtual methods. More...

#include <factory.H>

Inheritance diagram for reranker::FactoryBase:
reranker::Factory< reranker::Model > reranker::Factory< reranker::ModelProtoReader > reranker::Factory< T >

Public Member Functions

virtual ~FactoryBase ()
 
virtual void Clear ()=0
 Clears the (possibly static) data of this factory. More...
 
virtual const string BaseName () const =0
 Returns the name of the base type of objects constructed by this factory. More...
 
virtual void CollectRegistered (unordered_set< string > &registered) const =0
 Collects the names of types registered with this factory. More...
 
virtual VarMapBaseCreateVarMap (Environment *env) const =0
 
virtual VarMapBaseCreateVectorVarMap (Environment *env) const =0
 

Detailed Description

An interface for all Factory instances, specifying a few pure virtual methods.

Definition at line 271 of file factory.H.

Constructor & Destructor Documentation

virtual reranker::FactoryBase::~FactoryBase ( )
inlinevirtual

Definition at line 273 of file factory.H.

Member Function Documentation

virtual const string reranker::FactoryBase::BaseName ( ) const
pure virtual

Returns the name of the base type of objects constructed by this factory.

Implemented in reranker::Factory< T >, reranker::Factory< reranker::ModelProtoReader >, and reranker::Factory< reranker::Model >.

virtual void reranker::FactoryBase::Clear ( )
pure virtual

Clears the (possibly static) data of this factory.

Note that invoking this method will prevent the factory from functioning! It should only be invoked when the factory is no longer needed by the current process.

Implemented in reranker::Factory< T >, reranker::Factory< reranker::ModelProtoReader >, and reranker::Factory< reranker::Model >.

virtual void reranker::FactoryBase::CollectRegistered ( unordered_set< string > &  registered) const
pure virtual

Collects the names of types registered with this factory.

Parameters
[out]registeredregistered a set to be modified by this method so that it contains the names of concrete types registered with this factory

Implemented in reranker::Factory< T >, reranker::Factory< reranker::ModelProtoReader >, and reranker::Factory< reranker::Model >.

virtual VarMapBase* reranker::FactoryBase::CreateVarMap ( Environment env) const
pure virtual
virtual VarMapBase* reranker::FactoryBase::CreateVectorVarMap ( Environment env) const
pure virtual

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