20 #ifndef THETA_A_NOT_B_HPP_
21 #define THETA_A_NOT_B_HPP_
23 #include "theta_sketch.hpp"
24 #include "theta_set_difference_base.hpp"
29 template<
typename A>
class theta_a_not_b_alloc;
32 using theta_a_not_b = theta_a_not_b_alloc<std::allocator<uint64_t>>;
38 template<
typename Allocator = std::allocator<u
int64_t>>
41 using Entry = uint64_t;
42 using ExtractKey = trivial_extract_key;
44 using State = theta_set_difference_base<Entry, ExtractKey, CompactSketch, Allocator>;
51 explicit theta_a_not_b_alloc(uint64_t seed = DEFAULT_SEED,
const Allocator& allocator = Allocator());
60 template<
typename FwdSketch,
typename Sketch>
69 #include "theta_a_not_b_impl.hpp"
Compact Theta sketch.
Definition: theta_sketch.hpp:359
Theta A-not-B (set difference).
Definition: theta_a_not_b.hpp:39
CompactSketch compute(FwdSketch &&a, const Sketch &b, bool ordered=true) const
Computes the A-not-B set operation given two sketches.
theta_a_not_b_alloc(uint64_t seed=DEFAULT_SEED, const Allocator &allocator=Allocator())
Constructor.
Definition: theta_a_not_b_impl.hpp:30
DataSketches namespace.
Definition: binomial_bounds.hpp:38