class SG_EXPORT osg::MemoryAdapter

Class for adapting the memory management of external data.

Inheritance:


Public Methods

[more] MemoryAdapter()
[more]virtual void ref_data(void* ) = 0
Increment the reference count of the userData
[more]virtual void unref_data(void* ) = 0
Decrement the reference count of the userData.
[more]virtual void* clone_data(void* )
not current used, but will be used in future

Protected Methods

[more]virtual ~MemoryAdapter()


Inherited from Referenced:

Public Methods

oinline Referenced& operator = (Referenced&)
oinline void ref() const
oinline void unref() const
oinline const int referenceCount() const

Protected Fields

omutable 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.
o MemoryAdapter()

ovirtual void ref_data(void* ) = 0
Increment the reference count of the userData

ovirtual 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.

ovirtual void* clone_data(void* )
not current used, but will be used in future

ovirtual ~MemoryAdapter()


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.