You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by al...@apache.org on 2019/11/05 23:20:40 UTC
[incubator-datasketches-cpp] 01/04: moved aliases to the front
This is an automated email from the ASF dual-hosted git repository.
alsay pushed a commit to branch cpc_template
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-cpp.git
commit 7ffbe1b4b9136af26df63c52e64612126f09f46a
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Tue Nov 5 12:10:54 2019 -0800
moved aliases to the front
---
cpc/include/cpc_sketch.hpp | 12 ++++++++----
cpc/include/cpc_union.hpp | 8 ++++----
2 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/cpc/include/cpc_sketch.hpp b/cpc/include/cpc_sketch.hpp
index 6cc1120..c71f183 100644
--- a/cpc/include/cpc_sketch.hpp
+++ b/cpc/include/cpc_sketch.hpp
@@ -37,7 +37,11 @@
namespace datasketches {
/*
- * High performance C++ implementation of Compressed Probabilistic Counting sketch
+ * High performance C++ implementation of Compressed Probabilistic Counting (CPC) Sketch
+ *
+ * This is a very compact (in serialized form) distinct counting sketch.
+ * The theory is described in the following paper:
+ * https://arxiv.org/abs/1708.06839
*
* author Kevin Lang
* author Alexander Saydakov
@@ -47,6 +51,9 @@ namespace datasketches {
template<typename A> class cpc_sketch_alloc;
template<typename A> class cpc_union_alloc;
+// alias with default allocator for convenience
+typedef cpc_sketch_alloc<std::allocator<void>> cpc_sketch;
+
template<typename A>
class cpc_sketch_alloc {
public:
@@ -163,9 +170,6 @@ class cpc_sketch_alloc {
friend cpc_union_alloc<A>;
};
-// alias with default allocator for convenience
-typedef cpc_sketch_alloc<std::allocator<void>> cpc_sketch;
-
} /* namespace datasketches */
#include "cpc_sketch_impl.hpp"
diff --git a/cpc/include/cpc_union.hpp b/cpc/include/cpc_union.hpp
index 4841fdb..9601cc0 100644
--- a/cpc/include/cpc_union.hpp
+++ b/cpc/include/cpc_union.hpp
@@ -31,12 +31,15 @@
namespace datasketches {
/*
- * High performance C++ implementation of Compressed Probabilistic Counting sketch
+ * High performance C++ implementation of Compressed Probabilistic Counting (CPC) Union
*
* author Kevin Lang
* author Alexander Saydakov
*/
+// alias with default allocator for convenience
+typedef cpc_union_alloc<std::allocator<void>> cpc_union;
+
template<typename A>
class cpc_union_alloc {
public:
@@ -73,9 +76,6 @@ class cpc_union_alloc {
void reduce_k(uint8_t new_lg_k);
};
-// alias with default allocator for convenience
-typedef cpc_union_alloc<std::allocator<void>> cpc_union;
-
} /* namespace datasketches */
#include "cpc_union_impl.hpp"
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org