14#ifndef OSGDB_OBJECTCACHE
15#define OSGDB_OBJECTCACHE 1
80 typedef std::map<FileNameOptionsPair, ObjectTimeStampPair, ClassComp>
ObjectCacheMap;
This class provides an object-oriented thread mutex interface.
Definition Mutex:31
Definition ObjectCache:27
void addObjectCache(ObjectCache *object)
void updateTimeStampOfObjectsInCacheWithExternalReferences(double referenceTime)
OpenThreads::Mutex _objectCacheMutex
Definition ObjectCache:85
void removeFromObjectCache(const std::string &fileName, const Options *options=NULL)
void removeExpiredObjectsInCache(double expiryTime)
osg::Object * getFromObjectCache(const std::string &fileName, const Options *options=NULL)
ObjectCacheMap::iterator find(const std::string &fileName, const osgDB::Options *options)
std::map< FileNameOptionsPair, ObjectTimeStampPair, ClassComp > ObjectCacheMap
Definition ObjectCache:80
osg::ref_ptr< osg::Object > getRefFromObjectCache(const std::string &fileName, const Options *options=NULL)
std::pair< osg::ref_ptr< osg::Object >, double > ObjectTimeStampPair
Definition ObjectCache:79
void addEntryToObjectCache(const std::string &filename, osg::Object *object, double timestamp=0.0, const Options *options=NULL)
void releaseGLObjects(osg::State *state)
ObjectCacheMap _objectCache
Definition ObjectCache:84
std::pair< std::string, osg::ref_ptr< const osgDB::Options > > FileNameOptionsPair
Definition ObjectCache:71
#define OSGDB_EXPORT
Definition osgDB/Export:39
#define NULL
Definition osg/Export:55
Definition ObjectCache:74