#include <ObjectCache>
◆ FileNameOptionsPair
◆ ObjectCacheMap
◆ ObjectTimeStampPair
◆ ObjectCache()
osgDB::ObjectCache::ObjectCache |
( |
| ) |
|
◆ ~ObjectCache()
virtual osgDB::ObjectCache::~ObjectCache |
( |
| ) |
|
|
protectedvirtual |
◆ addEntryToObjectCache()
void osgDB::ObjectCache::addEntryToObjectCache |
( |
const std::string & |
filename, |
|
|
osg::Object * |
object, |
|
|
double |
timestamp = 0.0 , |
|
|
const Options * |
options = NULL |
|
) |
| |
Add a filename,object,timestamp triple to the Registry::ObjectCache.
◆ addObjectCache()
void osgDB::ObjectCache::addObjectCache |
( |
ObjectCache * |
object | ) |
|
Add contents of specified ObjectCache to this object cache.
◆ clear()
void osgDB::ObjectCache::clear |
( |
| ) |
|
Remove all objects in the cache regardless of having external references or expiry times.
◆ find()
ObjectCacheMap::iterator osgDB::ObjectCache::find |
( |
const std::string & |
fileName, |
|
|
const osgDB::Options * |
options |
|
) |
| |
|
protected |
◆ getFromObjectCache()
osg::Object * osgDB::ObjectCache::getFromObjectCache |
( |
const std::string & |
fileName, |
|
|
const Options * |
options = NULL |
|
) |
| |
◆ getRefFromObjectCache()
Get a thread safe ref_ptr<Object> from the object cache
◆ releaseGLObjects()
void osgDB::ObjectCache::releaseGLObjects |
( |
osg::State * |
state | ) |
|
call rleaseGLObjects on all objects attached to the object cache.
◆ removeExpiredObjectsInCache()
void osgDB::ObjectCache::removeExpiredObjectsInCache |
( |
double |
expiryTime | ) |
|
Removed object in the cache which have a time stamp at or before the specified expiry time. This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required, and called after the a called after the call to updateTimeStampOfObjectsInCacheWithExternalReferences(expirtyTime).
◆ removeFromObjectCache()
void osgDB::ObjectCache::removeFromObjectCache |
( |
const std::string & |
fileName, |
|
|
const Options * |
options = NULL |
|
) |
| |
Remove Object from cache.
◆ updateTimeStampOfObjectsInCacheWithExternalReferences()
void osgDB::ObjectCache::updateTimeStampOfObjectsInCacheWithExternalReferences |
( |
double |
referenceTime | ) |
|
For each object in the cache which has an reference count greater than 1 (and therefore referenced by elsewhere in the application) set the time stamp for that object in the cache to specified time. This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required. The time used should be taken from the FrameStamp::getReferenceTime().
◆ _objectCache
◆ _objectCacheMutex
The documentation for this class was generated from the following file: