strus  0.17
termStatisticsChange.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_TERM_STATISTICS_CHANGE_HPP_INCLUDED
11 #define _STRUS_TERM_STATISTICS_CHANGE_HPP_INCLUDED
12 
13 namespace strus {
14 
18 {
19 public:
21  :m_type(0),m_value(0),m_increment(0){}
23  :m_type(o.m_type),m_value(o.m_value),m_increment(o.m_increment){}
24  TermStatisticsChange( const char* type_, const char* value_, int increment_)
25  :m_type(type_),m_value(value_),m_increment(increment_){}
26 
27  const char* type() const {return m_type;}
28  const char* value() const {return m_value;}
29  int increment() const {return m_increment;}
30 
31 private:
32  const char* m_type;
33  const char* m_value;
34  int m_increment;
35 };
36 
37 }//namespace
38 #endif
39 
TermStatisticsChange()
Definition: termStatisticsChange.hpp:20
int increment() const
Definition: termStatisticsChange.hpp:29
const char * value() const
Definition: termStatisticsChange.hpp:28
const char * type() const
Definition: termStatisticsChange.hpp:27
Structure describing the change of statistics of one term in the collection.
Definition: termStatisticsChange.hpp:17
TermStatisticsChange(const char *type_, const char *value_, int increment_)
Definition: termStatisticsChange.hpp:24
TermStatisticsChange(const TermStatisticsChange &o)
Definition: termStatisticsChange.hpp:22