Raptor
A fast and space-efficient pre-filter
Toggle main menu visibility
Setup
Usage
Quickstart
raptor prepare
raptor layout
raptor build
raptor search
Methods
First steps with Raptor
Create a layout with Raptor
Indexing with Raptor
Search with Raptor
API Reference (details)
Concept List
Class List
Class List
Class Index
Class Hierarchy
Class Members
All
Functions
Variables
File List
File List
File Members
All
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Macros
Pages
Concepts
Loading...
Searching...
No Matches
store_index.hpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin
2
// SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
3
// SPDX-License-Identifier: BSD-3-Clause
4
10
#pragma once
11
12
#include <
filesystem
>
13
#include <
fstream
>
14
15
#include <
raptor/index.hpp
>
16
#include <
raptor/strong_types.hpp
>
17
18
namespace
raptor
19
{
20
21
template
<
typename
data_t>
22
static
inline
void
store_index(
std::filesystem::path
const
& path, raptor_index<data_t> && index)
23
{
24
std::ofstream
os{path, std::ios::binary};
25
cereal::BinaryOutputArchive oarchive{os};
26
oarchive(index);
27
}
28
29
}
// namespace raptor
std::ofstream
filesystem
fstream
index.hpp
Provides raptor::raptor_index.
std::filesystem::path
strong_types.hpp
Provides raptor::window.
Hide me
Version:
raptor
build
store_index.hpp
Generated on Fri Aug 16 2024 11:08:16 for Raptor by
1.10.0