Cache the locations of several objects to improve search speed.
More...
#include <ObjRefCache.h>
Cache the locations of several objects to improve search speed.
◆ 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
-
| ref | current object reference, must be valid |
| objID | object 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: