diff options
Diffstat (limited to 'sot/source/sdstor/stgcache.hxx')
-rw-r--r-- | sot/source/sdstor/stgcache.hxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sot/source/sdstor/stgcache.hxx b/sot/source/sdstor/stgcache.hxx index a9fcc85fa1a5..34204231b7d3 100644 --- a/sot/source/sdstor/stgcache.hxx +++ b/sot/source/sdstor/stgcache.hxx @@ -24,20 +24,28 @@ #include <tools/solar.h> #include <tools/stream.hxx> #include <stgelem.hxx> +#include <boost/unordered_map.hpp> class UCBStorageStream; - class StgPage; class StgDirEntry; class StorageBase; +typedef boost::unordered_map +< + sal_Int32, + StgPage *, + boost::hash< sal_Int32 >, + std::equal_to< sal_Int32 > +> IndexToStgPage; + class StgCache { StgPage* pCur; // top of LRU list StgPage* pElem1; // top of ordered list sal_uLong nError; // error code sal_Int32 nPages; // size of data area in pages sal_uInt16 nRef; // reference count - void * pLRUCache; // hash table of cached objects + IndexToStgPage maLRUCache; // hash of index to cached pages short nPageSize; // page size of the file UCBStorageStream* pStorageStream; // holds reference to UCB storage stream |