Class for adapting the memory management of external data.
Inheritance:
Public Methods
-
MemoryAdapter()
-
virtual void ref_data(void* ) = 0
- Increment the reference count of the userData
-
virtual void unref_data(void* ) = 0
- Decrement the reference count of the userData.
-
virtual void* clone_data(void* )
- not current used, but will be used in future
Protected Methods
-
virtual ~MemoryAdapter()
Public Methods
-
inline Referenced& operator = (Referenced&)
-
inline void ref() const
-
inline void unref() const
-
inline const int referenceCount() const
Protected Fields
-
mutable int _refCount
Documentation
Class for adapting the memory management of external data.
Typically used to specify the memory management of user data
which can be attached to osg::Node.
- MemoryAdapter()
- virtual void ref_data(void* ) = 0
- Increment the reference count of the userData
- virtual void unref_data(void* ) = 0
- Decrement the reference count of the userData.
Is usually implemented such that if reference count
is decremented to zero the userData should be
deleted. However, this is entirely up to the
discretion of the user who is extending this base class.
- virtual void* clone_data(void* )
- not current used, but will be used in future
- virtual ~MemoryAdapter()
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.