From ba65c8976f54d4da2467074235a12f5be0bd5ebc Mon Sep 17 00:00:00 2001 From: "Douglas B. Rumbaugh" Date: Sun, 22 Dec 2024 15:12:13 -0500 Subject: Continued development --- include/shard/PGM.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/shard/PGM.h') diff --git a/include/shard/PGM.h b/include/shard/PGM.h index 7d1f492..5b39ab4 100644 --- a/include/shard/PGM.h +++ b/include/shard/PGM.h @@ -111,7 +111,7 @@ public: } } - PGM(std::vector const &shards) + PGM(std::vector const &shards) : m_data(nullptr) , m_bf(nullptr) , m_reccnt(0) @@ -190,7 +190,7 @@ public: delete m_bf; } - Wrapped *point_lookup(const R &rec, bool filter=false) { + Wrapped *point_lookup(const R &rec, bool filter=false) const { size_t idx = get_lower_bound(rec.key); if (idx >= m_reccnt) { return nullptr; @@ -223,11 +223,11 @@ public: } - size_t get_memory_usage() { + size_t get_memory_usage() const { return m_pgm.size_in_bytes(); } - size_t get_aux_memory_usage() { + size_t get_aux_memory_usage() const { return (m_bf) ? m_bf->memory_usage() : 0; } -- cgit v1.2.3