From d2279e1b96d352a0af1d425dcaaf93e8a26a8d52 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Mon, 30 Oct 2023 17:15:05 -0400 Subject: General Comment + Consistency updates --- include/shard/MemISAM.h | 6 +++++- include/shard/PGM.h | 4 ++++ include/shard/TrieSpline.h | 4 ++++ include/shard/VPTree.h | 9 +++++++-- include/shard/WIRS.h | 6 +++++- include/shard/WSS.h | 8 ++++++-- 6 files changed, 31 insertions(+), 6 deletions(-) (limited to 'include/shard') diff --git a/include/shard/MemISAM.h b/include/shard/MemISAM.h index f9c621e..8ca5cee 100644 --- a/include/shard/MemISAM.h +++ b/include/shard/MemISAM.h @@ -1,7 +1,7 @@ /* * include/shard/MemISAM.h * - * Copyright (C) 2023 Douglas Rumbaugh + * Copyright (C) 2023 Douglas B. Rumbaugh * Dong Xie * * All rights reserved. Published under the Modified BSD License. @@ -264,6 +264,10 @@ public: return m_internal_node_cnt * inmem_isam_node_size + m_alloc_size; } + size_t get_aux_memory_usage() { + return 0; + } + private: size_t get_lower_bound(const K& key) const { const InMemISAMNode* now = m_root; diff --git a/include/shard/PGM.h b/include/shard/PGM.h index d960e70..6d76376 100644 --- a/include/shard/PGM.h +++ b/include/shard/PGM.h @@ -235,6 +235,10 @@ public: return m_pgm.size_in_bytes() + m_alloc_size; } + size_t get_aux_memory_usage() { + return 0; + } + size_t get_lower_bound(const K& key) const { auto bound = m_pgm.search(key); size_t idx = bound.lo; diff --git a/include/shard/TrieSpline.h b/include/shard/TrieSpline.h index 98153c0..a784a38 100644 --- a/include/shard/TrieSpline.h +++ b/include/shard/TrieSpline.h @@ -250,6 +250,10 @@ public: return m_ts.GetSize() + m_alloc_size; } + size_t get_aux_memory_usage() { + return 0; + } + private: size_t get_lower_bound(const K& key) const { diff --git a/include/shard/VPTree.h b/include/shard/VPTree.h index 0e998d9..d9a15b1 100644 --- a/include/shard/VPTree.h +++ b/include/shard/VPTree.h @@ -1,9 +1,9 @@ /* * include/shard/VPTree.h * - * Copyright (C) 2023 Douglas Rumbaugh + * Copyright (C) 2023 Douglas B. Rumbaugh * - * All outsides reserved. Published under the Modified BSD License. + * All rights reserved. Published under the Modified BSD License. * */ #pragma once @@ -240,6 +240,11 @@ public: return m_node_cnt * sizeof(vpnode) + m_reccnt * sizeof(R*) + m_alloc_size; } + size_t get_aux_memory_usage() { + return 0; + } + + private: vpnode *build_vptree() { diff --git a/include/shard/WIRS.h b/include/shard/WIRS.h index 83573c8..bf29325 100644 --- a/include/shard/WIRS.h +++ b/include/shard/WIRS.h @@ -2,7 +2,7 @@ * include/shard/WIRS.h * * Copyright (C) 2023 Dong Xie - * Douglas Rumbaugh + * Douglas B. Rumbaugh * * All rights reserved. Published under the Modified BSD License. * @@ -260,6 +260,10 @@ public: return m_alloc_size + m_node_cnt * sizeof(wirs_node>); } + size_t get_aux_memory_usage() { + return 0; + } + private: size_t get_lower_bound(const K& key) const { diff --git a/include/shard/WSS.h b/include/shard/WSS.h index 87b016c..4e3a326 100644 --- a/include/shard/WSS.h +++ b/include/shard/WSS.h @@ -1,8 +1,8 @@ /* * include/shard/WSS.h * - * Copyright (C) 2023 Dong Xie - * Douglas Rumbaugh + * Copyright (C) 2023 Douglas B. Rumbaugh + * Dong Xie * * All rights reserved. Published under the Modified BSD License. * @@ -243,6 +243,10 @@ public: return m_alloc_size; } + size_t get_aux_memory_usage() { + return 0; + } + private: size_t get_lower_bound(const K& key) const { -- cgit v1.2.3