CluE  1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CluE::DistinctElementsPrimitive< U, H > Class Template Reference

Count distinct elements in a stream using a std::set (for debugging) More...

#include <distinctelementsprimitive.h>

Inheritance diagram for CluE::DistinctElementsPrimitive< U, H >:
Inheritance graph
Collaboration diagram for CluE::DistinctElementsPrimitive< U, H >:
Collaboration graph

Public Member Functions

 DistinctElementsPrimitive (unsigned long long sizeOfUniverse, double eps, std::function< HashFunction< U, H > *(unsigned long long sizeOfHashingSpace)> hashfunctionCreator)
 
 ~DistinctElementsPrimitive ()
 
DistinctElementsPrimitive< U, H > & operator<< (U const &element)
 
unsigned long long numberOfDistinctElements ()
 

Private Attributes

std::set< U > elements
 

Detailed Description

template<typename U, typename H>
class CluE::DistinctElementsPrimitive< U, H >

Count distinct elements in a stream using a std::set (for debugging)

Definition at line 15 of file distinctelementsprimitive.h.

Constructor & Destructor Documentation

template<typename U, typename H>
CluE::DistinctElementsPrimitive< U, H >::DistinctElementsPrimitive ( unsigned long long  sizeOfUniverse,
double  eps,
std::function< HashFunction< U, H > *(unsigned long long sizeOfHashingSpace)>  hashfunctionCreator 
)
inline

Definition at line 19 of file distinctelementsprimitive.h.

template<typename U, typename H>
CluE::DistinctElementsPrimitive< U, H >::~DistinctElementsPrimitive ( )
inline

Definition at line 24 of file distinctelementsprimitive.h.

Member Function Documentation

template<typename U, typename H >
DistinctElementsPrimitive< U, H > & CluE::DistinctElementsPrimitive< U, H >::operator<< ( U const &  element)

Definition at line 36 of file distinctelementsprimitive.h.

template<typename U , typename H >
unsigned long long CluE::DistinctElementsPrimitive< U, H >::numberOfDistinctElements ( )

Definition at line 42 of file distinctelementsprimitive.h.

Member Data Documentation

template<typename U, typename H>
std::set<U> CluE::DistinctElementsPrimitive< U, H >::elements
private

Definition at line 33 of file distinctelementsprimitive.h.


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