summaryrefslogtreecommitdiffstats
path: root/include/shard/VPTree.h
diff options
context:
space:
mode:
authorDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2024-12-22 15:12:13 -0500
committerDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2024-12-22 15:12:13 -0500
commitba65c8976f54d4da2467074235a12f5be0bd5ebc (patch)
tree955d5995f211d8a7a24f7b106912773db5e3a5ba /include/shard/VPTree.h
parent5617bed5257506d3dfda8537b16f44b3e40f1b42 (diff)
downloaddynamic-extension-ba65c8976f54d4da2467074235a12f5be0bd5ebc.tar.gz
Continued development
Diffstat (limited to 'include/shard/VPTree.h')
-rw-r--r--include/shard/VPTree.h6
1 files changed, 3 insertions, 3 deletions
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<VPTree*> shards)
+ VPTree(std::vector<const VPTree*> 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;
}