diff options
| author | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2024-12-22 15:12:13 -0500 |
|---|---|---|
| committer | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2024-12-22 15:12:13 -0500 |
| commit | ba65c8976f54d4da2467074235a12f5be0bd5ebc (patch) | |
| tree | 955d5995f211d8a7a24f7b106912773db5e3a5ba /include/shard/TrieSpline.h | |
| parent | 5617bed5257506d3dfda8537b16f44b3e40f1b42 (diff) | |
| download | dynamic-extension-ba65c8976f54d4da2467074235a12f5be0bd5ebc.tar.gz | |
Continued development
Diffstat (limited to 'include/shard/TrieSpline.h')
| -rw-r--r-- | include/shard/TrieSpline.h | 8 |
1 files changed, 4 insertions, 4 deletions
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<TrieSpline*> const &shards) + TrieSpline(std::vector<const TrieSpline*> const &shards) : m_reccnt(0) , m_tombstone_cnt(0) , m_alloc_size(0) @@ -229,7 +229,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 { 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; } |