ModErn Text Analysis
META Enumerates Textual Applications
Private Member Functions | Private Attributes | List of all members
meta::classify::classifier_factory Class Reference

Factory that is responsible for creating classifiers from configuration files. More...

#include <classifier_factory.h>

Inheritance diagram for meta::classify::classifier_factory:
meta::util::factory< classifier_factory, classifier, const cpptoml::table &, std::shared_ptr< index::forward_index >, std::shared_ptr< index::inverted_index > >

Private Member Functions

 classifier_factory ()
 Constructs the classifier_factory singleton.
 
template<class Classifier >
void reg ()
 Registers a single-index classifier. More...
 
template<class Classifier >
void reg_mi ()
 Registers a multi-index classifier. More...
 

Private Attributes

friend base_factory
 

Additional Inherited Members

- Public Types inherited from meta::util::factory< classifier_factory, classifier, const cpptoml::table &, std::shared_ptr< index::forward_index >, std::shared_ptr< index::inverted_index > >
using base_factory = factory
 Convenience typedef for the derived classes.
 
using pointer = std::unique_ptr< classifier >
 The return type for the create method.
 
using factory_method = std::function< pointer(Arguments...)>
 Convenience typedef for the factory methods used to create objects.
 
- Public Member Functions inherited from meta::util::factory< classifier_factory, classifier, const cpptoml::table &, std::shared_ptr< index::forward_index >, std::shared_ptr< index::inverted_index > >
void add (const std::string &identifier, Function &&fn)
 Associates the given identifier with the given factory method. More...
 
pointer create (const std::string &identifier, Args &&...args)
 Creates a new object based on the factory method parameters. More...
 
- Static Public Member Functions inherited from meta::util::factory< classifier_factory, classifier, const cpptoml::table &, std::shared_ptr< index::forward_index >, std::shared_ptr< index::inverted_index > >
static classifier_factory & get ()
 Obtains the singleton. More...
 

Detailed Description

Factory that is responsible for creating classifiers from configuration files.

Clients should use the register_classifier method instead of this class directly to add their own classifiers.

Member Function Documentation

template<class Classifier >
void meta::classify::classifier_factory::reg ( )
private

Registers a single-index classifier.

Used internally.

template<class Classifier >
void meta::classify::classifier_factory::reg_mi ( )
private

Registers a multi-index classifier.

Used internally.


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