strusAnalyzer  0.17
contentStatisticsView.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_CONTENT_STATISTICS_VIEW_HPP_INCLUDED
12 #define _STRUS_ANALYZER_CONTENT_STATISTICS_VIEW_HPP_INCLUDED
14 
16 namespace strus {
18 namespace analyzer {
19 
23 {
24 public:
27 
30  :m_elements(o.m_elements),m_attributes(o.m_attributes),m_expressions(o.m_expressions){}
31 
34  ContentStatisticsView( const std::vector<ContentStatisticsElementView>& elements_, const std::vector<std::string>& attributes_, const std::vector<std::string>& expressions_)
35  :m_elements(elements_),m_attributes(attributes_),m_expressions(expressions_){}
36 
38  const std::vector<ContentStatisticsElementView>& elements() const {return m_elements;}
40  const std::vector<std::string>& attributes() const {return m_attributes;}
42  const std::vector<std::string>& expressions() const {return m_expressions;}
43 
44 private:
45  std::vector<ContentStatisticsElementView> m_elements;
46  std::vector<std::string> m_attributes;
47  std::vector<std::string> m_expressions;
48 };
49 
50 }}//namespace
51 #endif
52 
ContentStatisticsView()
Default constructor.
Definition: contentStatisticsView.hpp:26
Structure describing the internal representation of a content statistics library. ...
Definition: contentStatisticsView.hpp:22
ContentStatisticsView(const std::vector< ContentStatisticsElementView > &elements_, const std::vector< std::string > &attributes_, const std::vector< std::string > &expressions_)
Constructor.
Definition: contentStatisticsView.hpp:34
ContentStatisticsView(const ContentStatisticsView &o)
Copy constructor.
Definition: contentStatisticsView.hpp:29
const std::vector< ContentStatisticsElementView > & elements() const
Get the list of elements.
Definition: contentStatisticsView.hpp:38
const std::vector< std::string > & expressions() const
Get the list of expressions.
Definition: contentStatisticsView.hpp:42
const std::vector< std::string > & attributes() const
Get the list of visible attributes.
Definition: contentStatisticsView.hpp:40
Structures describing the internal representation of a feature in a document analyzer.