diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2023-10-30 17:15:05 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2023-10-30 17:15:05 -0400 |
| commit | d2279e1b96d352a0af1d425dcaaf93e8a26a8d52 (patch) | |
| tree | 4e8df98339ff5578deb8f8be46b9f6c3cc34cef4 /include/shard | |
| parent | 8ce1cb0eef7d5631f0f7788804845ddc8296ac6f (diff) | |
| download | dynamic-extension-d2279e1b96d352a0af1d425dcaaf93e8a26a8d52.tar.gz | |
General Comment + Consistency updates
Diffstat (limited to 'include/shard')
| -rw-r--r-- | include/shard/MemISAM.h | 6 | ||||
| -rw-r--r-- | include/shard/PGM.h | 4 | ||||
| -rw-r--r-- | include/shard/TrieSpline.h | 4 | ||||
| -rw-r--r-- | include/shard/VPTree.h | 9 | ||||
| -rw-r--r-- | include/shard/WIRS.h | 6 | ||||
| -rw-r--r-- | include/shard/WSS.h | 8 |
6 files changed, 31 insertions, 6 deletions
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 <drumbaugh@psu.edu> + * Copyright (C) 2023 Douglas B. Rumbaugh <drumbaugh@psu.edu> * Dong Xie <dongx@psu.edu> * * 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 <drumbaugh@psu.edu> + * Copyright (C) 2023 Douglas B. Rumbaugh <drumbaugh@psu.edu> * - * 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 <dongx@psu.edu> - * Douglas Rumbaugh <drumbaugh@psu.edu> + * Douglas B. Rumbaugh <drumbaugh@psu.edu> * * All rights reserved. Published under the Modified BSD License. * @@ -260,6 +260,10 @@ public: return m_alloc_size + m_node_cnt * sizeof(wirs_node<Wrapped<R>>); } + 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 <dongx@psu.edu> - * Douglas Rumbaugh <drumbaugh@psu.edu> + * Copyright (C) 2023 Douglas B. Rumbaugh <drumbaugh@psu.edu> + * Dong Xie <dongx@psu.edu> * * 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 { |