IFS::FWFS::ObjRefCache Class Reference

Cache the locations of several objects to improve search speed. More...

#include <ObjRefCache.h>

Public Member Functions

void initialise (Object::ID objectCount)
 
void clear ()
 
void add (const ObjRef &ref)
 
uint32_t * getOffset (FWFS::Object::ID objIndex)
 
void improve (ObjRef &ref, FWFS::Object::ID objID)
 see if the cache can get a better search position to find an object More...
 

Detailed Description

Cache the locations of several objects to improve search speed.

Member Function Documentation

◆ add()

void IFS::FWFS::ObjRefCache::add ( const ObjRef ref)
inline

◆ clear()

void IFS::FWFS::ObjRefCache::clear ( void  )
inline

◆ getOffset()

uint32_t* IFS::FWFS::ObjRefCache::getOffset ( FWFS::Object::ID  objIndex)
inline

◆ improve()

void IFS::FWFS::ObjRefCache::improve ( ObjRef ref,
FWFS::Object::ID  objID 
)
inline

see if the cache can get a better search position to find an object

Parameters
refcurrent object reference, must be valid
objIDobject we're looking for
Note
FWRO object IDs are sequential indices, so we'll try to get the start offset as close as possible

◆ initialise()

void IFS::FWFS::ObjRefCache::initialise ( Object::ID  objectCount)
inline

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