strus  0.17
globalStatistics.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  */
8 #ifndef _STRUS_GLOBAL_STATISTICS_HPP_INCLUDED
9 #define _STRUS_GLOBAL_STATISTICS_HPP_INCLUDED
10 #include "strus/index.hpp"
11 
12 namespace strus {
13 
17 {
20  :m_nofDocumentsInserted(-1){}
22  explicit GlobalStatistics( const GlobalCounter& nofDocumentsInserted_)
23  :m_nofDocumentsInserted(nofDocumentsInserted_){}
26  :m_nofDocumentsInserted(o.m_nofDocumentsInserted){}
27 
28  GlobalCounter nofDocumentsInserted() const {return m_nofDocumentsInserted;}
29  void setNofDocumentsInserted( const GlobalCounter& n) {m_nofDocumentsInserted = n;}
30 
31 private:
32  GlobalCounter m_nofDocumentsInserted;
33 };
34 
35 }//namespace
36 #endif
37 
38 
GlobalCounter nofDocumentsInserted() const
Definition: globalStatistics.hpp:28
GlobalStatistics(const GlobalCounter &nofDocumentsInserted_)
Constructor.
Definition: globalStatistics.hpp:22
GlobalStatistics(const GlobalStatistics &o)
Copy constructor.
Definition: globalStatistics.hpp:25
Numeric types used for local and global indices.
void setNofDocumentsInserted(const GlobalCounter &n)
Definition: globalStatistics.hpp:29
int64_t GlobalCounter
Number type generally used for indices globally shared between different instances of strus...
Definition: index.hpp:32
Global document statistics, if passed down with the query.
Definition: globalStatistics.hpp:16
GlobalStatistics()
Default constructor.
Definition: globalStatistics.hpp:19