strusAnalyzer  0.17
documentAnalyzerView.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_DOCUMENT_ANALYZER_VIEW_HPP_INCLUDED
12 #define _STRUS_ANALYZER_DOCUMENT_ANALYZER_VIEW_HPP_INCLUDED
18 
20 namespace strus {
22 namespace analyzer {
23 
27 {
28 public:
33  :m_segmenter(o.m_segmenter)
34  ,m_subcontents(o.m_subcontents)
35  ,m_subdocuments(o.m_subdocuments)
36  ,m_attributes(o.m_attributes)
37  ,m_metadata(o.m_metadata)
38  ,m_searchindex(o.m_searchindex)
39  ,m_forwardindex(o.m_forwardindex)
40  ,m_aggregators(o.m_aggregators)
41  {}
52  const FunctionView& segmenter_,
53  const std::vector<SubContentDefinitionView>& subcontents_,
54  const std::vector<SubDocumentDefinitionView>& subdocuments_,
55  const std::vector<FeatureView>& attributes_,
56  const std::vector<FeatureView>& metadata_,
57  const std::vector<FeatureView>& searchindex_,
58  const std::vector<FeatureView>& forwardindex_,
59  const std::vector<AggregatorView>& aggregators_)
60  :m_segmenter(segmenter_)
61  ,m_subcontents(subcontents_)
62  ,m_subdocuments(subdocuments_)
63  ,m_attributes(attributes_)
64  ,m_metadata(metadata_)
65  ,m_searchindex(searchindex_)
66  ,m_forwardindex(forwardindex_)
67  ,m_aggregators(aggregators_)
68  {}
69 
70  const FunctionView& segmenter() const {return m_segmenter;}
71  const std::vector<SubContentDefinitionView>& subcontents() const {return m_subcontents;}
72  const std::vector<SubDocumentDefinitionView>& subdocuments() const {return m_subdocuments;}
73  const std::vector<FeatureView>& attributes() const {return m_attributes;}
74  const std::vector<FeatureView>& metadata() const {return m_metadata;}
75  const std::vector<FeatureView>& searchindex() const {return m_searchindex;}
76  const std::vector<FeatureView>& forwardindex() const {return m_forwardindex;}
77  const std::vector<AggregatorView>& aggregators() const {return m_aggregators;}
78 
79 private:
80  FunctionView m_segmenter;
81  std::vector<SubContentDefinitionView> m_subcontents;
82  std::vector<SubDocumentDefinitionView> m_subdocuments;
83  std::vector<FeatureView> m_attributes;
84  std::vector<FeatureView> m_metadata;
85  std::vector<FeatureView> m_searchindex;
86  std::vector<FeatureView> m_forwardindex;
87  std::vector<AggregatorView> m_aggregators;
88 };
89 
90 }}//namespace
91 #endif
92 
const FunctionView & segmenter() const
Definition: documentAnalyzerView.hpp:70
Structure describing the internal representation of a sub content definition in the document analyzer...
const std::vector< AggregatorView > & aggregators() const
Definition: documentAnalyzerView.hpp:77
const std::vector< FeatureView > & metadata() const
Definition: documentAnalyzerView.hpp:74
Structure describing the internal representation of a normalizer/tokenizer/aggregator function in the...
Structure describing the internal representation of a normalizer/tokenizer/aggregator function in the...
Definition: functionView.hpp:29
DocumentAnalyzerView()
Default constructor.
Definition: documentAnalyzerView.hpp:30
const std::vector< FeatureView > & searchindex() const
Definition: documentAnalyzerView.hpp:75
DocumentAnalyzerView(const FunctionView &segmenter_, const std::vector< SubContentDefinitionView > &subcontents_, const std::vector< SubDocumentDefinitionView > &subdocuments_, const std::vector< FeatureView > &attributes_, const std::vector< FeatureView > &metadata_, const std::vector< FeatureView > &searchindex_, const std::vector< FeatureView > &forwardindex_, const std::vector< AggregatorView > &aggregators_)
Constructor.
Definition: documentAnalyzerView.hpp:51
Structures describing the internal representation of an aggregator in a document analyzer.
const std::vector< SubDocumentDefinitionView > & subdocuments() const
Definition: documentAnalyzerView.hpp:72
const std::vector< FeatureView > & attributes() const
Definition: documentAnalyzerView.hpp:73
const std::vector< SubContentDefinitionView > & subcontents() const
Definition: documentAnalyzerView.hpp:71
DocumentAnalyzerView(const DocumentAnalyzerView &o)
Copy constructor.
Definition: documentAnalyzerView.hpp:32
Structure describing the internal representation of a document analyzer for introspection.
Definition: documentAnalyzerView.hpp:26
const std::vector< FeatureView > & forwardindex() const
Definition: documentAnalyzerView.hpp:76
Structures describing the internal representation of a feature in a document analyzer.
Structure describing the internal representation of a sub document definition in the document analyze...