11 #ifndef _STRUS_ANALYZER_CONTENT_STATISTICS_ELEMENT_VIEW_HPP_INCLUDED
12 #define _STRUS_ANALYZER_CONTENT_STATISTICS_ELEMENT_VIEW_HPP_INCLUDED
29 :m_type(o.m_type),m_regex(o.m_regex),m_priority(o.m_priority),m_minLen(o.m_minLen),m_maxLen(o.m_maxLen),m_tokenizer(o.m_tokenizer),m_normalizer(o.m_normalizer){}
38 :m_type(type_),m_regex(regex_),m_priority(priority_),m_minLen(minLen_),m_maxLen(maxLen_),m_tokenizer(tokenizer_),m_normalizer(normalizer_){}
41 const std::string&
type()
const {
return m_type;}
43 const std::string&
regex()
const {
return m_regex;}
47 int minLen()
const {
return m_minLen;}
49 int maxLen()
const {
return m_maxLen;}
53 const std::vector<FunctionView>&
normalizer()
const {
return m_normalizer;}
62 std::vector<FunctionView> m_normalizer;
const std::vector< FunctionView > & normalizer() const
Get the list of normalizers.
Definition: contentStatisticsElementView.hpp:53
const std::string & type() const
Get the type.
Definition: contentStatisticsElementView.hpp:41
int minLen() const
Get the priority.
Definition: contentStatisticsElementView.hpp:47
int maxLen() const
Get the priority.
Definition: contentStatisticsElementView.hpp:49
ContentStatisticsElementView(const std::string &type_, const std::string ®ex_, int priority_, int minLen_, int maxLen_, const FunctionView &tokenizer_, const std::vector< FunctionView > &normalizer_)
Constructor.
Definition: contentStatisticsElementView.hpp:37
ContentStatisticsElementView(const ContentStatisticsElementView &o)
Copy constructor.
Definition: contentStatisticsElementView.hpp:28
Structure describing the internal representation of a normalizer/tokenizer/aggregator function in the...
Structure describing the internal representation of a normalizer/tokenizer/aggregator function in the...
Definition: functionView.hpp:29
ContentStatisticsElementView()
Default constructor.
Definition: contentStatisticsElementView.hpp:26
const std::string & regex() const
Get the segmenter selection expression.
Definition: contentStatisticsElementView.hpp:43
Structure describing the internal representation of a content statistics library element.
Definition: contentStatisticsElementView.hpp:22
int priority() const
Get the priority.
Definition: contentStatisticsElementView.hpp:45
const FunctionView & tokenizer() const
Get the tokenizer.
Definition: contentStatisticsElementView.hpp:51