strus  0.17
summarizerFunctionInterface.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 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  */
10 #ifndef _STRUS_SUMMARIZER_FUNCTION_INTERFACE_HPP_INCLUDED
11 #define _STRUS_SUMMARIZER_FUNCTION_INTERFACE_HPP_INCLUDED
13 #include <string>
14 #include <vector>
15 
16 namespace strus
17 {
19 class SummarizerFunctionInstanceInterface;
21 class QueryProcessorInterface;
22 
23 
26 {
27 public:
30 
35  const QueryProcessorInterface* processor) const=0;
36 
39  virtual FunctionDescription getDescription() const=0;
40 };
41 
42 }//namespace
43 #endif
44 
45 
Description of a weighting or summarizer function.
Interface for summarization functions (additional info about the matches in the result ranklist of a ...
Definition: summarizerFunctionInterface.hpp:25
virtual SummarizerFunctionInstanceInterface * createInstance(const QueryProcessorInterface *processor) const =0
Create an instance of this summarization function for parametrization.
Defines all object instances involved in query evaluation addressable by name.
Definition: queryProcessorInterface.hpp:27
virtual FunctionDescription getDescription() const =0
Get a description of the function for user help and introspection.
Structure that describes a function (weighting or summarizer function) for introspection.
Definition: functionDescription.hpp:20
Interface for a parameterized instance of summarization.
Definition: summarizerFunctionInstanceInterface.hpp:31
virtual ~SummarizerFunctionInterface()
Destructor.
Definition: summarizerFunctionInterface.hpp:29