OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
osgDB::ObjectWrapperManager Class Reference

#include <ObjectWrapper.h>

Inheritance diagram for osgDB::ObjectWrapperManager:
Inheritance graph
[legend]
Collaboration diagram for osgDB::ObjectWrapperManager:
Collaboration graph
[legend]

Public Types

typedef std::map< std::string,
osg::ref_ptr< ObjectWrapper > > 
WrapperMap
 
typedef std::map< std::string,
osg::ref_ptr< BaseCompressor > > 
CompressorMap
 
typedef std::map< std::string,
IntLookup
IntLookupMap
 

Public Member Functions

void addWrapper (ObjectWrapper *wrapper)
 
void removeWrapper (ObjectWrapper *wrapper)
 
ObjectWrapperfindWrapper (const std::string &name)
 
WrapperMapgetWrapperMap ()
 
const WrapperMapgetWrapperMap () const
 
void addCompressor (BaseCompressor *compressor)
 
void removeCompressor (BaseCompressor *compressor)
 
BaseCompressorfindCompressor (const std::string &name)
 
CompressorMapgetCompressorMap ()
 
const CompressorMapgetCompressorMap () const
 
IntLookup::Value getValue (const std::string &group, const std::string &str)
 
const std::string & getString (const std::string &group, IntLookup::Value value)
 
IntLookupMapgetLookupMap ()
 
const IntLookupMapgetLookupMap () const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 

Protected Member Functions

 ObjectWrapperManager ()
 
virtual ~ObjectWrapperManager ()
 
IntLookupfindLookup (const std::string &group)
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

OpenThreads::ReentrantMutex _wrapperMutex
 
WrapperMap _wrappers
 
CompressorMap _compressors
 
IntLookupMap _globalMap
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Friends

class osgDB::Registry
 

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 

Detailed Description

Definition at line 137 of file ObjectWrapper.h.

Member Typedef Documentation

Definition at line 155 of file ObjectWrapper.h.

typedef std::map<std::string, IntLookup> osgDB::ObjectWrapperManager::IntLookupMap

Definition at line 159 of file ObjectWrapper.h.

Definition at line 146 of file ObjectWrapper.h.

Constructor & Destructor Documentation

osgDB::ObjectWrapperManager::ObjectWrapperManager ( )
protected
virtual osgDB::ObjectWrapperManager::~ObjectWrapperManager ( )
protectedvirtual

Member Function Documentation

void osgDB::ObjectWrapperManager::addCompressor ( BaseCompressor compressor)
void osgDB::ObjectWrapperManager::addWrapper ( ObjectWrapper wrapper)
BaseCompressor* osgDB::ObjectWrapperManager::findCompressor ( const std::string &  name)
IntLookup& osgDB::ObjectWrapperManager::findLookup ( const std::string &  group)
inlineprotected

Definition at line 178 of file ObjectWrapper.h.

ObjectWrapper* osgDB::ObjectWrapperManager::findWrapper ( const std::string &  name)
CompressorMap& osgDB::ObjectWrapperManager::getCompressorMap ( )
inline

Definition at line 156 of file ObjectWrapper.h.

const CompressorMap& osgDB::ObjectWrapperManager::getCompressorMap ( ) const
inline

Definition at line 157 of file ObjectWrapper.h.

IntLookupMap& osgDB::ObjectWrapperManager::getLookupMap ( )
inline

Definition at line 163 of file ObjectWrapper.h.

const IntLookupMap& osgDB::ObjectWrapperManager::getLookupMap ( ) const
inline

Definition at line 164 of file ObjectWrapper.h.

const std::string& osgDB::ObjectWrapperManager::getString ( const std::string &  group,
IntLookup::Value  value 
)
inline

Definition at line 161 of file ObjectWrapper.h.

IntLookup::Value osgDB::ObjectWrapperManager::getValue ( const std::string &  group,
const std::string &  str 
)
inline

Definition at line 160 of file ObjectWrapper.h.

WrapperMap& osgDB::ObjectWrapperManager::getWrapperMap ( )
inline

Definition at line 147 of file ObjectWrapper.h.

const WrapperMap& osgDB::ObjectWrapperManager::getWrapperMap ( ) const
inline

Definition at line 148 of file ObjectWrapper.h.

void osgDB::ObjectWrapperManager::removeCompressor ( BaseCompressor compressor)
void osgDB::ObjectWrapperManager::removeWrapper ( ObjectWrapper wrapper)

Friends And Related Function Documentation

friend class osgDB::Registry
friend

Definition at line 168 of file ObjectWrapper.h.

Member Data Documentation

CompressorMap osgDB::ObjectWrapperManager::_compressors
protected

Definition at line 176 of file ObjectWrapper.h.

IntLookupMap osgDB::ObjectWrapperManager::_globalMap
protected

Definition at line 185 of file ObjectWrapper.h.

OpenThreads::ReentrantMutex osgDB::ObjectWrapperManager::_wrapperMutex
protected

Definition at line 173 of file ObjectWrapper.h.

WrapperMap osgDB::ObjectWrapperManager::_wrappers
protected

Definition at line 175 of file ObjectWrapper.h.


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