9 #ifndef MKNN_DATASET_HPP_
10 #define MKNN_DATASET_HPP_
12 #include "../metricknn_cpp.hpp"
96 void save(std::string filename_write);
135 std::unique_ptr<Impl>
pimpl;
std::unique_ptr< Impl > pimpl
opaque object
Definition: mknn_dataset.hpp:131
Domain getDomain()
Returns the domain assigned to the dataset.
MetricKnn provides a set of pre-defined distances.
Definition: mknn_predefined_distance.hpp:30
void pushObject(void *object)
Adds an object to a dataset.
void * getCompactVectors()
The objects in the dataset are stored in a single long array.
void printObjectsToTextFile(std::string filename_write)
It saves the objects in a dataset in text format.
A Index represents the index structure.
Definition: mknn_index.hpp:45
Represents a set of objects of any type.
Definition: mknn_dataset.hpp:23
static Dataset restore(std::string filename_read)
Loads a dataset from a file.
long long getNumObjects()
Size of the dataset.
Definition: mevaluation_answers.hpp:18
Different Loaders.
Definition: mknn_dataset_loader.hpp:105
Dataset & operator=(const Dataset &other)
Assignment operator.
void save(std::string filename_write)
The dataset is saved to a file.
Dataset()
Default constructor.
The Distance is the object with the definition of the method for comparing objects.
Definition: mknn_distance.hpp:59
virtual ~Dataset()
Default destructor.
void * getObject(long long pos)
Retrieves the object in position pos in dataset.
A Resolver represents the parameters of a similarity search.
Definition: mknn_resolver.hpp:27
A domain represents the type of object that are contained in a dataset.
Definition: mknn_domain.hpp:33