summaryrefslogtreecommitdiffstats
path: root/include/shard/PGM.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/PGM.h
parent5617bed5257506d3dfda8537b16f44b3e40f1b42 (diff)
downloaddynamic-extension-ba65c8976f54d4da2467074235a12f5be0bd5ebc.tar.gz
Continued development
Diffstat (limited to 'include/shard/PGM.h')
-rw-r--r--include/shard/PGM.h8
1 files changed, 4 insertions, 4 deletions
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<PGM*> const &shards)
+ PGM(std::vector<const PGM*> const &shards)
: m_data(nullptr)
, m_bf(nullptr)
, m_reccnt(0)
@@ -190,7 +190,7 @@ public:
delete m_bf;
}
- Wrapped<R> *point_lookup(const R &rec, bool filter=false) {
+ Wrapped<R> *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;
}