vendor/datasketches-cpp/hll/include/HllSketchImpl.hpp in datasketches-0.2.1 vs vendor/datasketches-cpp/hll/include/HllSketchImpl.hpp in datasketches-0.2.2

- old
+ new

@@ -28,11 +28,11 @@ namespace datasketches { template<typename A> class HllSketchImpl { public: - HllSketchImpl(int lgConfigK, target_hll_type tgtHllType, hll_mode mode, bool startFullSize); + HllSketchImpl(uint8_t lgConfigK, target_hll_type tgtHllType, hll_mode mode, bool startFullSize); virtual ~HllSketchImpl(); virtual void serialize(std::ostream& os, bool compact) const = 0; virtual vector_u8<A> serialize(bool compact, unsigned header_size_bytes) const = 0; @@ -40,29 +40,29 @@ virtual HllSketchImpl* copyAs(target_hll_type tgtHllType) const = 0; HllSketchImpl<A>* reset(); virtual std::function<void(HllSketchImpl<A>*)> get_deleter() const = 0; - virtual HllSketchImpl* couponUpdate(int coupon) = 0; + virtual HllSketchImpl* couponUpdate(uint32_t coupon) = 0; hll_mode getCurMode() const; virtual double getEstimate() const = 0; virtual double getCompositeEstimate() const = 0; - virtual double getUpperBound(int numStdDev) const = 0; - virtual double getLowerBound(int numStdDev) const = 0; + virtual double getUpperBound(uint8_t numStdDev) const = 0; + virtual double getLowerBound(uint8_t numStdDev) const = 0; - inline int getLgConfigK() const; + inline uint8_t getLgConfigK() const; - virtual int getMemDataStart() const = 0; + virtual uint32_t getMemDataStart() const = 0; - virtual int getPreInts() const = 0; + virtual uint8_t getPreInts() const = 0; target_hll_type getTgtHllType() const; - virtual int getUpdatableSerializationBytes() const = 0; - virtual int getCompactSerializationBytes() const = 0; + virtual uint32_t getUpdatableSerializationBytes() const = 0; + virtual uint32_t getCompactSerializationBytes() const = 0; virtual bool isCompact() const = 0; virtual bool isEmpty() const = 0; virtual bool isOutOfOrderFlag() const = 0; virtual void putOutOfOrderFlag(bool oooFlag) = 0; @@ -73,13 +73,13 @@ static target_hll_type extractTgtHllType(uint8_t modeByte); static hll_mode extractCurMode(uint8_t modeByte); uint8_t makeFlagsByte(bool compact) const; uint8_t makeModeByte() const; - const int lgConfigK; - const target_hll_type tgtHllType; - const hll_mode mode; - const bool startFullSize; + const uint8_t lgConfigK_; + const target_hll_type tgtHllType_; + const hll_mode mode_; + const bool startFullSize_; }; } #endif // _HLLSKETCHIMPL_HPP_