70 lines
3.0 KiB
HTML
70 lines
3.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>class osg::DeleteHandler</TITLE>
|
|
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.6">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
|
|
<H2>class <A HREF="#DOC.DOCU">osg::DeleteHandler</A></H2></H2><BLOCKQUOTE>Class for override the default delete behavior so that users can implment their own object deletion schemes.</BLOCKQUOTE>
|
|
<HR>
|
|
|
|
<DL>
|
|
<P><DL>
|
|
<DT><H3>Public Methods</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.197.1">~DeleteHandler</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.197.2">flush</A></B>()
|
|
<DD><I>flush any cache of objects that need to be deleted by doing an actual delete</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.197.3">doDelete</A></B>(const <!1><A HREF="Referenced.html">Referenced</A>* object)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.197.4">requestDelete</A></B>(const <!1><A HREF="Referenced.html">Referenced</A>* object)
|
|
<DD><I>Request the deletion of an object.</I>
|
|
</DL></P>
|
|
|
|
</DL>
|
|
|
|
<A NAME="DOC.DOCU"></A>
|
|
<HR>
|
|
<H2>Documentation</H2>
|
|
<BLOCKQUOTE>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.</BLOCKQUOTE>
|
|
<DL>
|
|
|
|
<A NAME="~DeleteHandler"></A>
|
|
<A NAME="DOC.2.197.1"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~DeleteHandler()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="flush"></A>
|
|
<A NAME="DOC.2.197.2"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void flush()</B></TT>
|
|
<DD>flush any cache of objects that need to be deleted by doing an actual delete
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="doDelete"></A>
|
|
<A NAME="DOC.2.197.3"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void doDelete(const <!1><A HREF="Referenced.html">Referenced</A>* object)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="requestDelete"></A>
|
|
<A NAME="DOC.2.197.4"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void requestDelete(const <!1><A HREF="Referenced.html">Referenced</A>* object)</B></TT>
|
|
<DD>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.
|
|
<DL><DT><DD></DL><P></DL>
|
|
|
|
<HR><DL><DT><B>This class has no child classes.</B></DL>
|
|
|
|
<DL><DT><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
|
|
<BR>
|
|
This page was generated with the help of <A HREF="http://www.linuxsupportline.com/~doc++">DOC++</A>.
|
|
</BODY>
|
|
</HTML>
|