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/VPTree.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/shard/VPTree.h') diff --git a/include/shard/VPTree.h b/include/shard/VPTree.h index 477db5c..7130efe 100644 --- a/include/shard/VPTree.h +++ b/include/shard/VPTree.h @@ -86,7 +86,7 @@ public: } } - VPTree(std::vector shards) + VPTree(std::vector shards) : m_reccnt(0), m_tombstone_cnt(0), m_node_cnt(0), m_root(nullptr) { size_t attemp_reccnt = 0; @@ -174,11 +174,11 @@ public: return m_data + idx; } - size_t get_memory_usage() { + size_t get_memory_usage() const { return m_node_cnt * sizeof(vpnode) + m_reccnt * sizeof(R*); } - size_t get_aux_memory_usage() { + size_t get_aux_memory_usage() const { // FIXME: need to return the size of the unordered_map return 0; } -- cgit v1.2.3