summaryrefslogtreecommitdiffstats
path: root/qtools/qcache.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtools/qcache.h')
-rw-r--r--qtools/qcache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qtools/qcache.h b/qtools/qcache.h
index f15345e..e1f13d6 100644
--- a/qtools/qcache.h
+++ b/qtools/qcache.h
@@ -73,6 +73,8 @@ public:
type *operator[]( const QString &k ) const
{ return (type *)QGCache::find_string(k);}
void statistics() const { QGCache::statistics(); }
+ int hits() const { return QGCache::hits(); }
+ int misses() const { return QGCache::misses(); }
private:
void deleteItem( Item d ) { if ( del_item ) delete (type *)d; }
};
@@ -107,6 +109,8 @@ public:
type *operator[]( const char *k ) const
{ return (type *)QGCache::find_other(k);}
void statistics() const { QGCache::statistics(); }
+ int hits() const { return QGCache::hits(); }
+ int misses() const { return QGCache::misses(); }
private:
void deleteItem( Item d ) { if ( del_item ) delete (type *)d; }
};