summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2019-09-23 10:36:28 +0000
committerHåvard Pettersen <havardpe@oath.com>2019-09-23 10:50:44 +0000
commit5aaf221e14c236c30da57e0c8dc450fc4529c441 (patch)
tree182a5239b90d914db5b0f48b1b297db44afc1b0c /searchlib
parent4d00bb40718ab4e01230e1492d73a2d92e0124f9 (diff)
introduce separate docsum matcher class
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/common/featureset.h7
-rw-r--r--searchlib/src/vespa/searchlib/common/matching_elements.h2
2 files changed, 4 insertions, 5 deletions
diff --git a/searchlib/src/vespa/searchlib/common/featureset.h b/searchlib/src/vespa/searchlib/common/featureset.h
index 1ec662685a7..beb9bd909ee 100644
--- a/searchlib/src/vespa/searchlib/common/featureset.h
+++ b/searchlib/src/vespa/searchlib/common/featureset.h
@@ -50,11 +50,8 @@ private:
FeatureSet & operator=(const FeatureSet &);
public:
- /**
- * Convenience typedef for a shared pointer to an object of this
- * class.
- **/
- typedef std::shared_ptr<FeatureSet> SP;
+ using SP = std::shared_ptr<FeatureSet>;
+ using UP = std::unique_ptr<FeatureSet>;
/**
* Create a new object without any feature information.
diff --git a/searchlib/src/vespa/searchlib/common/matching_elements.h b/searchlib/src/vespa/searchlib/common/matching_elements.h
index 9299191e83a..b31b258ea4c 100644
--- a/searchlib/src/vespa/searchlib/common/matching_elements.h
+++ b/searchlib/src/vespa/searchlib/common/matching_elements.h
@@ -24,6 +24,8 @@ public:
MatchingElements();
~MatchingElements();
+ using UP = std::unique_ptr<MatchingElements>;
+
void add_matching_elements(uint32_t docid, const vespalib::string &struct_field_name, const std::vector<uint32_t> &elements);
const std::vector<uint32_t> &get_matching_elements(uint32_t docid, const vespalib::string &struct_field_name) const;
};