knncolle
Collection of KNN methods in C++
Loading...
Searching...
No Matches
load_prebuilt.hpp File Reference

Load prebuilt search indices from disk. More...

#include <string>
#include <unordered_map>
#include <functional>
#include <fstream>
#include <memory>
#include "Prebuilt.hpp"
#include "Bruteforce.hpp"
#include "Vptree.hpp"
#include "L2Normalized.hpp"
Include dependency graph for load_prebuilt.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  knncolle::L2NormalizedPrebuiltTypes
 Template type of a saved L2-normalized index. More...
 

Namespaces

namespace  knncolle
 Collection of KNN algorithms.
 

Typedefs

template<typename Index_ , typename Data_ , typename Distance_ >
using knncolle::LoadPrebuiltFunction = std::function<Prebuilt<Index_, Data_, Distance_>* (const std::string&)>
 

Functions

template<typename Index_ , typename Data_ , typename Distance_ >
std::unordered_map< std::string, LoadPrebuiltFunction< Index_, Data_, Distance_ > > & knncolle::load_prebuilt_registry ()
 
template<typename Index_ , typename Data_ , typename Distance_ >
Prebuilt< Index_, Data_, Distance_ > * knncolle::load_prebuilt_raw (const std::string &prefix)
 
template<typename Index_ , typename Data_ , typename Distance_ >
std::unique_ptr< Prebuilt< Index_, Data_, Distance_ > > knncolle::load_prebuilt_unique (const std::string &prefix)
 
template<typename Index_ , typename Data_ , typename Distance_ >
std::shared_ptr< Prebuilt< Index_, Data_, Distance_ > > knncolle::load_prebuilt_shared (const std::string &prefix)
 
L2NormalizedPrebuiltTypes knncolle::load_l2normalized_prebuilt_types (const std::string &prefix)
 
template<typename Index_ , typename Data_ , typename Distance_ , typename Normalized_ >
Prebuilt< Index_, Data_, Distance_ > * knncolle::load_l2normalized_prebuilt (const std::string &prefix)
 

Detailed Description

Load prebuilt search indices from disk.