Raptor 3.0.0-rc.1
A fast and space-efficient pre-filter for querying very large collections of nucleotide sequences
 
chopper_pack_record.hpp
Go to the documentation of this file.
1// --------------------------------------------------------------------------------------------------
2// Copyright (c) 2006-2023, Knut Reinert & Freie Universität Berlin
3// Copyright (c) 2016-2023, Knut Reinert & MPI für molekulare Genetik
4// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
5// shipped with this file and also available at: https://github.com/seqan/raptor/blob/main/LICENSE.md
6// --------------------------------------------------------------------------------------------------
7
13#pragma once
14
15#include <string>
16#include <tuple>
17#include <vector>
18
19namespace raptor::hibf
20{
21
23{
24 std::vector<std::string> filenames{};
25 std::vector<size_t> bin_indices{};
26 std::vector<size_t> number_of_bins{};
27 std::vector<size_t> estimated_sizes{};
28
29 bool operator==(chopper_pack_record const & other) const
30 {
31 return std::tie(filenames, bin_indices, number_of_bins, estimated_sizes)
32 == std::tie(other.filenames, other.bin_indices, other.number_of_bins, other.estimated_sizes);
33 }
34
35 bool operator!=(chopper_pack_record const & other) const
36 {
37 return std::tie(filenames, bin_indices, number_of_bins, estimated_sizes)
38 != std::tie(other.filenames, other.bin_indices, other.number_of_bins, other.estimated_sizes);
39 }
40};
41
42} // namespace raptor::hibf
Must be first include.
Definition: bin_prefixes.hpp:18
Definition: chopper_pack_record.hpp:23
T tie(T... args)