Pyrogenesis  trunk
Public Member Functions | Private Types | Private Attributes | List of all members
FileCache::Impl Class Reference
Collaboration diagram for FileCache::Impl:
Collaboration graph
[legend]

Public Member Functions

 Impl (size_t maxSize)
 
shared_ptr< u8Reserve (size_t size)
 
void Add (const VfsPath &pathname, const shared_ptr< u8 > &data, size_t size, size_t cost)
 
bool Retrieve (const VfsPath &pathname, shared_ptr< u8 > &data, size_t &size)
 
void Remove (const VfsPath &pathname)
 

Private Types

typedef Cache< VfsPath, shared_ptr< u8 > > CacheType
 

Private Attributes

CacheType m_cache
 
PAllocator m_allocator
 

Member Typedef Documentation

typedef Cache<VfsPath, shared_ptr<u8> > FileCache::Impl::CacheType
private

Constructor & Destructor Documentation

FileCache::Impl::Impl ( size_t  maxSize)
inline

Member Function Documentation

void FileCache::Impl::Add ( const VfsPath pathname,
const shared_ptr< u8 > &  data,
size_t  size,
size_t  cost 
)
inline
void FileCache::Impl::Remove ( const VfsPath pathname)
inline
shared_ptr<u8> FileCache::Impl::Reserve ( size_t  size)
inline
bool FileCache::Impl::Retrieve ( const VfsPath pathname,
shared_ptr< u8 > &  data,
size_t &  size 
)
inline

Member Data Documentation

PAllocator FileCache::Impl::m_allocator
private
CacheType FileCache::Impl::m_cache
private

The documentation for this class was generated from the following file: