10 #ifndef META_CLASSIFIER_FACTORY_H_
11 #define META_CLASSIFIER_FACTORY_H_
34 const cpptoml::table&,
35 std::shared_ptr<index::forward_index>,
36 std::shared_ptr<index::inverted_index>>
49 template <
class Classifier>
55 template <
class Classifier>
72 std::unique_ptr<classifier>
74 std::shared_ptr<index::forward_index> idx,
75 std::shared_ptr<index::inverted_index> inv_idx =
nullptr);
90 template <
class Classifier>
91 std::unique_ptr<classifier>
93 std::shared_ptr<index::forward_index> idx)
95 return make_unique<Classifier>(idx);
113 template <
class Classifier>
114 std::unique_ptr<classifier>
116 std::shared_ptr<index::forward_index> idx,
117 std::shared_ptr<index::inverted_index> inv_idx)
119 return make_unique<Classifier>(idx, inv_idx);
127 template <
class Classifier>
133 [](
const cpptoml::table& config,
134 std::shared_ptr<index::forward_index> idx,
135 std::shared_ptr<index::inverted_index>)
137 return make_classifier<Classifier>(config, std::move(idx));
146 template <
class Classifier>
150 make_multi_index_classifier<Classifier>);
Definition: analyzer.h:19