XLE  v0.02.0
Classes | Public Types | Public Member Functions | Protected Attributes | List of all members
Assets::ArchiveCache Class Reference

Classes

class  BlockMetrics
 
class  ComparePendingCommit
 
class  Metrics
 
class  PendingCommit
 

Public Types

typedef std::shared_ptr< std::vector< uint8 > > BlockAndSize
 

Public Member Functions

void Commit (uint64 id, BlockAndSize &&data, const std::string &attachedString, std::function< void()> &&onFlush)
 
BlockAndSize OpenFromCache (uint64 id)
 
bool HasItem (uint64 id) const
 
void FlushToDisk ()
 
Metrics GetMetrics () const
 Return profiling related breakdown More...
 
 ArchiveCache (const char archiveName[], const char buildVersionString[], const char buildDateString[])
 

Protected Attributes

Threading::Mutex _pendingBlocksLock
 
std::vector< PendingCommit_pendingBlocks
 
std::string _mainFileName
 
std::string _directoryFileName
 
const char * _buildVersionString
 
const char * _buildDateString
 

Member Function Documentation

auto Assets::ArchiveCache::GetMetrics ( ) const

Return profiling related breakdown

Designed to be used for profiling archive usage and stats.


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