strusAnalyzer  0.17
queryAnalyzerView.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_QUERY_ANALYZER_VIEW_HPP_INCLUDED
12 #define _STRUS_ANALYZER_QUERY_ANALYZER_VIEW_HPP_INCLUDED
14 
16 namespace strus {
18 namespace analyzer {
19 
23 {
24 public:
29  :m_elements(o.m_elements)
30  ,m_patternLexems(o.m_patternLexems)
31  {}
35  const std::vector<QueryElementView>& elements_,
36  const std::vector<QueryElementView>& patternLexems_)
37  :m_elements(elements_)
38  ,m_patternLexems(patternLexems_)
39  {}
40 
41  const std::vector<QueryElementView>& elements() const {return m_elements;}
42  const std::vector<QueryElementView>& patternLexems() const {return m_patternLexems;}
43 
44 private:
45  std::vector<QueryElementView> m_elements;
46  std::vector<QueryElementView> m_patternLexems;
47 };
48 
49 }}//namespace
50 #endif
51 
Structure describing the internal representation of a document analyzer for introspection.
Definition: queryAnalyzerView.hpp:22
Structures describing the internal representation of an element in a query analyzer.
QueryAnalyzerView()
Default constructor.
Definition: queryAnalyzerView.hpp:26
QueryAnalyzerView(const std::vector< QueryElementView > &elements_, const std::vector< QueryElementView > &patternLexems_)
Constructor.
Definition: queryAnalyzerView.hpp:34
const std::vector< QueryElementView > & elements() const
Definition: queryAnalyzerView.hpp:41
QueryAnalyzerView(const QueryAnalyzerView &o)
Copy constructor.
Definition: queryAnalyzerView.hpp:28
const std::vector< QueryElementView > & patternLexems() const
Definition: queryAnalyzerView.hpp:42