strusAnalyzer  0.17
aggregatorView.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 Patrick P. Frey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
11 #ifndef _STRUS_ANALYZER_DOCUMENT_AGGREGATOR_VIEW_HPP_INCLUDED
12 #define _STRUS_ANALYZER_DOCUMENT_AGGREGATOR_VIEW_HPP_INCLUDED
14 
16 namespace strus {
18 namespace analyzer {
19 
23 {
24 public:
27 
30  :m_type(o.m_type),m_function(o.m_function){}
31 
35  AggregatorView( const std::string& type_, const FunctionView& function_)
36  :m_type(type_),m_function(function_){}
37 
39  const std::string& type() const {return m_type;}
41  const FunctionView& function() const {return m_function;}
42 
43 private:
44  std::string m_type;
45  FunctionView m_function;
46 };
47 
48 }}//namespace
49 #endif
50 
AggregatorView(const std::string &type_, const FunctionView &function_)
Constructor.
Definition: aggregatorView.hpp:35
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
Structures describing the internal representation of an aggregator function in a document analyzer...
Definition: aggregatorView.hpp:22
AggregatorView(const AggregatorView &o)
Copy constructor.
Definition: aggregatorView.hpp:29
AggregatorView()
Default constructor.
Definition: aggregatorView.hpp:26
const std::string & type() const
Get the type.
Definition: aggregatorView.hpp:39