MetricKnn API
Fast Similarity Search using the Metric Space Approach
mknn_resolver.hpp
1 /*
2  * Copyright (C) 2012-2015, Juan Manuel Barrios <juanmanuel@barrios.cl>
3  * All rights reserved.
4  *
5  * This file is part of MetricKnn.
6  * MetricKnn is made available under the terms of the BSD 2-Clause License.
7  */
8 
9 #ifndef MKNN_RESOLVER_HPP_
10 #define MKNN_RESOLVER_HPP_
11 
12 #include "../metricknn_cpp.hpp"
13 
14 namespace mknn {
15 
16 class Result;
17 
27 class Resolver {
28 public:
29 
35 
40  Index &getIndex();
41 
52  Result search(Dataset &query_dataset);
53 
57  Resolver();
61  virtual ~Resolver();
65  Resolver(const Resolver &other);
69  Resolver &operator=(const Resolver &other);
70 
71 protected:
75  class Impl;
79  std::unique_ptr<Impl> pimpl;
80 
81  friend class Index;
82 };
83 
84 }
85 #endif
ResolverParams & getParameters()
Return the parameters used to create the resolver.
std::unique_ptr< Impl > pimpl
Internal opaque class.
Definition: mknn_resolver.hpp:75
Index & getIndex()
Returns the index used to create the resolver.
virtual ~Resolver()
Default destructor.
A Index represents the index structure.
Definition: mknn_index.hpp:45
Represents a set of objects of any type.
Definition: mknn_dataset.hpp:23
Stores parameters in an internal map, which associates a names with its value.
Definition: mknn_params.hpp:417
The result of a search for a set of queries.
Definition: mknn_result.hpp:22
Result search(Dataset &query_dataset)
Performs the configured similarity search.
Definition: mevaluation_answers.hpp:18
Resolver()
Default constructor.
A Resolver represents the parameters of a similarity search.
Definition: mknn_resolver.hpp:27
Resolver & operator=(const Resolver &other)
Assignment operator.
Powered by Download MetricKnn