Skip to content

Commit a6cd373

Browse files
committed
Rename hashhead::sieve to sieve_filter to avoid name conflict.
1 parent 857cd12 commit a6cd373

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

include/bitcoin/database/impl/primitives/hashhead.ipp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,13 @@ inline CLASS::cell CLASS::set_cell(bytes& next, const Link& current,
247247
TEMPLATE
248248
INLINE constexpr bool CLASS::screened(cell value, const Key& key) NOEXCEPT
249249
{
250-
if constexpr (sieve::disabled)
250+
if constexpr (sieve_filter::disabled)
251251
{
252252
return true;
253253
}
254254
else
255255
{
256-
return sieve{ to_filter(value) }.screened(fingerprint(key));
256+
return sieve_filter{ to_filter(value) }.screened(fingerprint(key));
257257
}
258258
}
259259

@@ -274,7 +274,7 @@ INLINE constexpr CLASS::filter CLASS::to_filter(cell value) NOEXCEPT
274274
TEMPLATE
275275
INLINE constexpr CLASS::link CLASS::to_link(cell value) NOEXCEPT
276276
{
277-
if constexpr (sieve::disabled)
277+
if constexpr (sieve_filter::disabled)
278278
{
279279
return system::possible_narrow_cast<link>(value);
280280
}
@@ -293,15 +293,15 @@ TEMPLATE
293293
INLINE constexpr CLASS::cell CLASS::to_cell(cell previous, link current,
294294
const Key& key) NOEXCEPT
295295
{
296-
if constexpr (sieve::disabled)
296+
if constexpr (sieve_filter::disabled)
297297
{
298298
return current;
299299
}
300300
else
301301
{
302302
using namespace system;
303303
static_assert(sizeof(filter) <= sizeof(cell));
304-
sieve filter{ to_filter(previous) };
304+
sieve_filter filter{ to_filter(previous) };
305305
filter.screen(fingerprint(key));
306306
const auto shifted = shift_left<cell>(filter.value(), link_bits);
307307
return bit_or<cell>(shifted, current);

include/bitcoin/database/primitives/hashhead.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ class hashhead
8383
static constexpr size_t select_bits = is_zero(sieve_bits) ? zero : 4u;
8484
static constexpr size_t screen_bits = sieve_bits - select_bits;
8585

86-
using sieve = sieve<sieve_bits, select_bits>;
87-
using filter = sieve::type;
86+
using sieve_filter = sieve<sieve_bits, select_bits>;
87+
using filter = sieve_filter::type;
8888
using link = Link::integer;
8989
using cell = unsigned_type<cell_size>;
9090

0 commit comments

Comments
 (0)