datasketches-cpp
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tuple_a_not_b< Summary, Allocator > Class Template Reference

tuple A-not-B More...

#include <tuple_a_not_b.hpp>

Inheritance diagram for tuple_a_not_b< Summary, Allocator >:
array_tuple_a_not_b< Array, Allocator >

Public Member Functions

 tuple_a_not_b (uint64_t seed=DEFAULT_SEED, const Allocator &allocator=Allocator())
 Constructor.
 
template<typename FwdSketch , typename Sketch >
CompactSketch compute (FwdSketch &&a, const Sketch &b, bool ordered=true) const
 Computes the A-not-B set operation given two sketches.
 

Detailed Description

template<typename Summary, typename Allocator = std::allocator<Summary>>
class datasketches::tuple_a_not_b< Summary, Allocator >

tuple A-not-B

Constructor & Destructor Documentation

◆ tuple_a_not_b()

template<typename Summary , typename Allocator = std::allocator<Summary>>
tuple_a_not_b ( uint64_t  seed = DEFAULT_SEED,
const Allocator &  allocator = Allocator() 
)
explicit

Constructor.

Parameters
seedfor the hash function that was used to create the sketch
allocatorto use for allocating and deallocating memory

Member Function Documentation

◆ compute()

template<typename Summary , typename Allocator = std::allocator<Summary>>
template<typename FwdSketch , typename Sketch >
CompactSketch compute ( FwdSketch &&  a,
const Sketch &  b,
bool  ordered = true 
) const

Computes the A-not-B set operation given two sketches.

Parameters
asketch A
bsketch B
orderedoptional flag to specify if an ordered sketch should be produced
Returns
the result of A-not-B as a compact sketch

The documentation for this class was generated from the following files: