class osg::DeleteHandler

Class for override the default delete behavior so that users can implment their own object deletion schemes.

Public Methods

[more]virtual ~DeleteHandler()
[more]virtual void flush()
flush any cache of objects that need to be deleted by doing an actual delete
[more]inline void doDelete(const Referenced* object)
[more]virtual void requestDelete(const Referenced* object)
Request the deletion of an object.


Documentation

Class for override the default delete behavior so that users can implment their own object deletion schemes. This might be done to help implement protection of multiple threads from deleting objects unintentionally. Note, the DeleteHandler cannot itself be reference counted, otherwise it would be responsible for deleting itself! An static auto_ptr<> is used internally in Referenced.cpp to manage the DeleteHandler's memory.
ovirtual ~DeleteHandler()

ovirtual void flush()
flush any cache of objects that need to be deleted by doing an actual delete

oinline void doDelete(const Referenced* object)

ovirtual void requestDelete(const Referenced* object)
Request the deletion of an object. Depending on users implementation of DeleteHandler, the delete of the object may occur straight away or be delayed until doDelete is called. The default implementation does a delete straight away.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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