ScummVM API documentation
Bagel::CCache Class Referenceabstract
Inheritance diagram for Bagel::CCache:
Bagel::CLList Bagel::CBofBitmap Bagel::CBagPanBitmap

Public Member Functions

 CCache ()
 
virtual ~CCache ()
 
void load ()
 
bool release ()
 
void lock ()
 
void unlock ()
 
bool isLocked ()
 

Static Public Member Functions

static void initialize ()
 
static bool flush ()
 
static bool optimize (uint32 lRequestedFreeSpace)
 

Constructor & Destructor Documentation

◆ CCache()

Bagel::CCache::CCache ( )

Constructor

◆ ~CCache()

virtual Bagel::CCache::~CCache ( )
virtual

Destructor

Member Function Documentation

◆ load()

void Bagel::CCache::load ( )

Loads current object into cache

◆ release()

bool Bagel::CCache::release ( )

Releases current object from cache

◆ initialize()

static void Bagel::CCache::initialize ( )
static

initialize statics

◆ flush()

static bool Bagel::CCache::flush ( )
static

Releases all objects from cache

◆ optimize()

static bool Bagel::CCache::optimize ( uint32  lRequestedFreeSpace)
static

Releases older objects from cache if need memory

Remarks
Optimizes cache so that the specified amount of memory is left available.
Parameters
lRequestedFreeSpaceFree space requested to remain available
Returns
true if there were any objects to release from the cache. false if there were no objects released.

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