9 #ifndef MKNN_INDEX_HPP_
10 #define MKNN_INDEX_HPP_
12 #include "../metricknn_cpp.hpp"
93 void save(std::string filename_write);
149 std::unique_ptr<Impl>
pimpl;
Resolver newResolver(ResolverParams ¶meters_resolver)
Configures a new similarity search using the given index.
IndexParams & getParameters()
Returns the parameters used to create or load the index.
Stores parameters in an internal map, which associates a names with its value.
Definition: mknn_params.hpp:223
Index & operator=(const Index &other)
Assignment operator.
static Index restore(std::string filename_read, Dataset &search_dataset, Distance &distance, IndexParams &more_parameters)
Loads an index from a file.
std::string getIdPredefinedIndex()
returns the id of the predefined index.
std::unique_ptr< Impl > pimpl
opaque object
Definition: mknn_index.hpp:145
static Index newPredefined(IndexParams ¶meters, Dataset &search_dataset, Distance &distance)
Instantiates a new index identified by the given parameters.
Distance & getDistance()
Returns the distance used to create or load the index.
Dataset & getSearchDataset()
Returns the dataset used to create or load the index.
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
Definition: mevaluation_answers.hpp:18
virtual ~Index()
Default destructor.
The Distance is the object with the definition of the method for comparing objects.
Definition: mknn_distance.hpp:59
void save(std::string filename_write)
Saves the built index to a file.
Index()
Default constructor.
A Resolver represents the parameters of a similarity search.
Definition: mknn_resolver.hpp:27