## class osg::DeleteHandler

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

### Public Methods

virtual ~DeleteHandler()
virtual void flush()
  flush any cache of objects that need to be deleted by doing an actual delete
inline void doDelete(const Referenced* object)
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.

`virtual ~DeleteHandler()`

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

`inline void doDelete(const Referenced* object)`

`virtual 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++.