summaryrefslogtreecommitdiff
path: root/src/cachestorenids.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-05-28 19:58:08 +0000
committerMike Buland <eichlan@xagasoft.com>2009-05-28 19:58:08 +0000
commitfcaaf2927914cfda505051693f5717b4a56ec04a (patch)
treee9769c4e1f420267c5d4903bbff26ca53a6f2934 /src/cachestorenids.h
parent22914644fb62bc1a9d49eec50a10f2870dde1d0b (diff)
downloadlibbu++-fcaaf2927914cfda505051693f5717b4a56ec04a.tar.gz
libbu++-fcaaf2927914cfda505051693f5717b4a56ec04a.tar.bz2
libbu++-fcaaf2927914cfda505051693f5717b4a56ec04a.tar.xz
libbu++-fcaaf2927914cfda505051693f5717b4a56ec04a.zip
The cache can now efficiently report how many items are stored in it, but
there's no way to find out how many are in memory now, I may add something for that later, but it seems more or less unimportant (except maybe for fine-tuning and making interesting looking displays).
Diffstat (limited to 'src/cachestorenids.h')
-rw-r--r--src/cachestorenids.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cachestorenids.h b/src/cachestorenids.h
index 0f7c72c..6a1c31b 100644
--- a/src/cachestorenids.h
+++ b/src/cachestorenids.h
@@ -131,6 +131,11 @@ namespace Bu
131 return hId.getKeys(); 131 return hId.getKeys();
132 } 132 }
133 133
134 virtual int getSize()
135 {
136 return hId.getSize();
137 }
138
134 private: 139 private:
135 Nids nStore; 140 Nids nStore;
136 typedef Bu::Hash<keytype, long> NidHash; 141 typedef Bu::Hash<keytype, long> NidHash;