@@ -32,41 +32,41 @@ template <size_t SieveBits, size_t SelectorBits,
3232class sieve
3333{
3434public:
35- using sieve_t = unsigned_type<system::to_ceilinged_bytes(SieveBits)>;
35+ using type = unsigned_type<system::to_ceilinged_bytes(SieveBits)>;
3636
3737 // / Initialize empty sieve.
3838 constexpr sieve () NOEXCEPT;
3939
4040 // / Initialize existing sieve.
41- constexpr sieve (sieve_t value) NOEXCEPT;
41+ constexpr sieve (type value) NOEXCEPT;
4242
4343 // / The fingerprint value.
44- constexpr sieve_t value () const NOEXCEPT;
44+ constexpr type value () const NOEXCEPT;
4545
4646 // / True if fingerprint aligns with sieve screen(s), bucket may contain.
47- constexpr bool screened (sieve_t fingerprint) const NOEXCEPT;
47+ constexpr bool screened (type fingerprint) const NOEXCEPT;
4848
4949 // / Add fingerprint to sieve, false if already screened.
50- constexpr bool screen (sieve_t fingerprint) NOEXCEPT;
50+ constexpr bool screen (type fingerprint) NOEXCEPT;
5151
5252 // / The fingerprint value.
53- constexpr operator sieve_t () const NOEXCEPT;
53+ constexpr operator type () const NOEXCEPT;
5454
5555protected:
5656 static constexpr auto sieve_bits = SieveBits;
5757 static constexpr auto selector_bits = SelectorBits;
5858 static constexpr auto screen_bits = sieve_bits - selector_bits;
5959
60- static constexpr auto empty = system::unmask_right<sieve_t >(sieve_bits);
60+ static constexpr auto empty = system::unmask_right<type >(sieve_bits);
6161 static constexpr auto saturated = system::mask_right(empty, sub1(screen_bits));
62- static constexpr auto first_mask = system::unmask_right<sieve_t >(screen_bits);
62+ static constexpr auto first_mask = system::unmask_right<type >(screen_bits);
6363 static constexpr auto selector_mask = first_mask;
6464
6565 static constexpr auto screens = system::power2(selector_bits);
6666 static constexpr auto mask_count = to_half(screens * add1 (screens));
6767 static constexpr auto limit = sub1(screens);
68- using masks_t = std_array<sieve_t , mask_count>;
69- using offsets_t = std_array<size_t , screens>;
68+ using masks_t = std_array<type , mask_count>;
69+ using offsets_t = std_array<type , screens>;
7070
7171 // / Generate compression offsets at compile.
7272 static CONSTEVAL offsets_t generate_offsets () NOEXCEPT;
@@ -75,13 +75,13 @@ class sieve
7575 static CONSTEVAL masks_t generate_masks () NOEXCEPT;
7676
7777 // / Read member compressed mask array as if it was a two-dimesional array.
78- constexpr sieve_t masks (size_t row, size_t column) const NOEXCEPT;
78+ constexpr type masks (size_t row, size_t column) const NOEXCEPT;
7979
8080private:
8181 // Logically sparse, e.g. 16 x 16 = 256 table of uint32_t (1024 bytes).
8282 // Compressed to one-dimensional 136 element array of uint32_t (544 bytes).
8383 static constexpr masks_t masks_ = generate_masks();
84- sieve_t sieve_;
84+ type sieve_;
8585};
8686
8787} // namespace database
0 commit comments