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/TrieSpline.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/shard/TrieSpline.h') diff --git a/include/shard/TrieSpline.h b/include/shard/TrieSpline.h index 9d8c3bb..7f4d4e5 100644 --- a/include/shard/TrieSpline.h +++ b/include/shard/TrieSpline.h @@ -124,7 +124,7 @@ public: } } - TrieSpline(std::vector const &shards) + TrieSpline(std::vector const &shards) : m_reccnt(0) , m_tombstone_cnt(0) , m_alloc_size(0) @@ -229,7 +229,7 @@ public: delete m_bf; } - Wrapped *point_lookup(const R &rec, bool filter=false) { + Wrapped *point_lookup(const R &rec, bool filter=false) const { if (filter && m_bf && !m_bf->lookup(rec)) { return nullptr; } @@ -266,11 +266,11 @@ public: } - size_t get_memory_usage() { + size_t get_memory_usage() const { return m_ts.GetSize(); } - 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