Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MISC] IWYU #215

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions include/hibf/sketch/minhashes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@

#pragma once

#include <cstdint>
#include <span>
#include <vector>
#include <cstddef> // for size_t
#include <cstdint> // for uint64_t
#include <span> // for span
#include <vector> // for vector

#include <hibf/platform.hpp>

Expand Down
17 changes: 12 additions & 5 deletions src/sketch/compute_sketches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@
// SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause

#include <atomic>
#include <algorithm> // for __fn, sort_heap, fill, make_heap
#include <atomic> // for atomic_flag
#include <cassert> // for assert
#include <cinttypes> // for uint64_t
#include <cstddef> // for size_t
#include <functional> // for function
#include <span> // for vector
#include <vector> // for vector
#include <functional> // for equal_to, function
#include <limits> // for numeric_limits
#include <span> // for span
#include <stdexcept> // for runtime_error
#include <string> // for char_traits, operator+, to_string
#include <utility> // for move
#include <vector> // for vector, allocator

#include <hibf/config.hpp> // for config, insert_iterator
#include <hibf/contrib/robin_hood.hpp> // for unordered_flat_set
#include <hibf/contrib/robin_hood.hpp> // for hash, unordered_flat_set
#include <hibf/sketch/compute_sketches.hpp> // for compute_sketches
#include <hibf/sketch/estimate_kmer_counts.hpp> // for estimate_kmer_counts
#include <hibf/sketch/hyperloglog.hpp> // for hyperloglog
#include <hibf/sketch/minhashes.hpp> // for minhashes

namespace seqan::hibf::sketch
{
Expand Down
9 changes: 6 additions & 3 deletions src/sketch/minhashes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
// SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause

#include <algorithm>
#include <cassert>
#include <algorithm> // for __fn, is_sorted, all_of, find, pop_heap, push_heap
#include <cassert> // for assert
#include <cinttypes> // for uint64_t
#include <span> // for span
#include <vector> // for vector

#include <hibf/sketch/minhashes.hpp>
#include <hibf/sketch/minhashes.hpp> // for minhashes

namespace seqan::hibf::sketch
{
Expand Down
11 changes: 9 additions & 2 deletions test/performance/sketch/compute_sketches_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
// SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause

#include <benchmark/benchmark.h>
#include <benchmark/benchmark.h> // for BENCHMARK_TEMPLATE, Benchmark, State

#include <hibf/sketch/compute_sketches.hpp>
#include <cinttypes> // for uint8_t
#include <cstddef> // for size_t
#include <vector> // for vector

#include <hibf/config.hpp> // for config, insert_iterator
#include <hibf/sketch/compute_sketches.hpp> // for compute_sketches
#include <hibf/sketch/hyperloglog.hpp> // for hyperloglog
#include <hibf/sketch/minhashes.hpp> // for minhashes

enum class sketch : uint8_t
{
Expand Down
11 changes: 6 additions & 5 deletions test/unit/hibf/interleaved_bloom_filter_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@
# define HIBF_HAS_AVX512 0
#endif

#include <gtest/gtest.h> // for Test, Message, TestPartResult, AssertionResult, TestInfo, EXPEC...
#include <gtest/gtest.h> // for Message, Test, AssertionResult, TestPartResult, TestInfo, EXPEC...

#include <algorithm> // for __for_each_fn, for_each
#include <algorithm> // for __fn, for_each
#include <array> // for array
#include <cinttypes> // for uint64_t
#include <compare> // for operator<, strong_ordering
#include <cstddef> // for size_t
#include <functional> // for identity, function
#include <ranges> // for iota_view, operator==, _Iota, iota, views
#include <functional> // for function
#include <ranges> // for iota_view, __fn, iota, views, operator==
#include <stdexcept> // for logic_error, invalid_argument
#include <type_traits> // for is_copy_assignable_v, is_copy_constructible_v, is_default_const...
#include <utility> // for move
#include <vector> // for vector, allocator
#include <vector> // for vector

#include <hibf/config.hpp> // for insert_iterator, config
#include <hibf/interleaved_bloom_filter.hpp> // for interleaved_bloom_filter, bin_index, bin_count, bin_size, hash_...
Expand Down
23 changes: 13 additions & 10 deletions test/unit/hibf/sketch/compute_sketches_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@
// SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause

#include <gtest/gtest-spi.h>
#include <gtest/gtest.h> // for Test, Message, TestPartResult, EXPECT_EQ, TestInfo, ASSERT_EQ

#include <cinttypes> // for uint64_t
#include <cstddef> // for size_t
#include <random> // for uniform_int_distribution, mt19937_64
#include <vector> // for allocator, vector

#include <hibf/sketch/compute_sketches.hpp>
#include <hibf/test/expect_range_eq.hpp> // for expect_range_eq, EXPECT_RANGE_EQ
#include <gtest/gtest.h> // for Message, TestPartResult, TestInfo, AssertionResult, ASSERT_EQ

#include <cstddef> // for size_t
#include <functional> // for function
#include <ranges> // for __fn, iota, views
#include <stdexcept> // for runtime_error
#include <vector> // for vector

#include <hibf/config.hpp> // for config, insert_iterator
#include <hibf/sketch/compute_sketches.hpp> // for compute_sketches
#include <hibf/sketch/hyperloglog.hpp> // for hyperloglog
#include <hibf/sketch/minhashes.hpp> // for minhashes
#include <hibf/test/expect_range_eq.hpp> // for expect_range_eq, EXPECT_RANGE_EQ

class compute_sketches_test : public ::testing::Test
{
Expand Down
12 changes: 10 additions & 2 deletions test/unit/hibf/sketch/minhashes_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@
// SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause

#include <gtest/gtest.h> // for Test, Message, TestInfo, TestPartResult, TEST, EXPECT_EQ
#include <gtest/gtest.h> // for AssertionResult, Message, Test, TestPartResult, EXPECT_FALSE, TestInfo

#include <algorithm> // for __fn, equal, make_heap
#include <cinttypes> // for uint64_t
#include <cstddef> // for size_t
#include <ranges> // for __fn, iota, views
#include <span> // for span
#include <utility> // for move
#include <vector> // for vector

#include <hibf/misc/iota_vector.hpp> // for iota_vector
#include <hibf/sketch/minhashes.hpp> // for minhash
#include <hibf/sketch/minhashes.hpp> // for minhashes
#include <hibf/test/expect_range_eq.hpp> // for expect_range_eq, EXPECT_RANGE_EQ

TEST(minhashes_test, ctor)
Expand Down
Loading