Raptor
4.0.0-rc.1
A fast and space-efficient pre-filter
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
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
strong_types.hpp
Provides raptor::window.
index.hpp
Provides raptor::raptor_index.
std::filesystem::path
Hide me
Version:
raptor
build
store_index.hpp
Generated on Sat Oct 31 2026 18:12:17 for Raptor by
1.10.0