10 #ifndef META_FILTER_FACTORY_H_
11 #define META_FILTER_FACTORY_H_
34 std::unique_ptr<token_stream>, const cpptoml::table&>
49 template <
class Tokenizer>
56 template <
class Filter>
66 template <
class Tokenizer>
69 return make_unique<Tokenizer>();
79 template <
class Filter>
80 std::unique_ptr<token_stream>
make_filter(std::unique_ptr<token_stream> source,
81 const cpptoml::table&)
83 return make_unique<Filter>(std::move(source));
91 template <
class Tokenizer>
96 [](std::unique_ptr<token_stream> source,
const cpptoml::table& config)
99 throw typename Tokenizer::token_stream_exception{
100 "tokenizers must be the first filter"};
101 return tokenizers::make_tokenizer<Tokenizer>(config);
109 template <
class Filter>
Definition: analyzer.h:19