2003-04-18 00:22:51 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
< HTML >
< HEAD >
< TITLE > class SG_EXPORT osg::Referenced< / TITLE >
< META NAME = "GENERATOR" CONTENT = "DOC++ 3.4.10" >
< / HEAD >
< BODY BGCOLOR = "#ffffff" >
< H2 > class SG_EXPORT < A HREF = "#DOC.DOCU" > osg::Referenced< / A > < / H2 > < / H2 > < BLOCKQUOTE > Base class from providing referencing counted objects< / BLOCKQUOTE >
< HR >
< H2 > Inheritance:< / H2 >
2003-10-02 22:28:30 +08:00
< APPLET CODE = "ClassGraph.class" WIDTH = 600 HEIGHT = 785 >
< param name = classes value = "CReferenced,MReferenced.html,CTest,MTest.html,CExtensions,MExtensions.8.html,CSubloadCallback,MSubloadCallback.5.html,CSubloadCallback,MSubloadCallback.4.html,CExtensions,MExtensions.7.html,CSubloadCallback,MSubloadCallback.3.html,CExtensions,MExtensions.6.html,CSubloadCallback,MSubloadCallback.2.html,CSubloadCallback,MSubloadCallback.html,CTextureObjectManager,MTextureObjectManager.html,CTextureObject,MTextureObject.html,CExtensions,MExtensions.5.html,CState,MState.html,CObject,MObject.html,CDatabaseRequestHandler,MDatabaseRequestHandler.html,CNodeVisitor,MNodeVisitor.html,CExtensions,MExtensions.4.html,CLineSegment,MLineSegment.html,CImpostorSpriteManager,MImpostorSpriteManager.html,CFrameStamp,MFrameStamp.html,CExtensions,MExtensions.3.html,CExtensions,MExtensions.2.html,CDisplaySettings,MDisplaySettings.html,CCullingSet,MCullingSet.html,CExtensions,MExtensions.html" >
< param name = before value = "M,M|_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,Mr_" >
< param name = after value = "M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M" >
< param name = indent value = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" >
2003-04-18 00:22:51 +08:00
< param name = arrowdir value = "down" >
< / APPLET >
< HR >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
2003-10-02 22:28:30 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > < B > < A HREF = "#DOC.2.164.1" > Referenced< / A > < / B > ()
2003-04-18 00:22:51 +08:00
< DT >
2003-10-02 22:28:30 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > < B > < A HREF = "#DOC.2.164.2" > Referenced< / A > < / B > (const <!1> < A HREF = "Referenced.html#DOC.2.164.2" > Referenced< / A > & )
2003-04-18 00:22:51 +08:00
< DT >
2003-10-02 22:28:30 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline <!1> < A HREF = "Referenced.html" > Referenced< / A > & < B > < A HREF = "#DOC.2.164.3" > operator = < / A > < / B > (<!1> < A HREF = "Referenced.html" > Referenced< / A > & )
2003-04-18 00:22:51 +08:00
< DT >
2003-10-02 22:28:30 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > static void < B > < A HREF = "#DOC.2.164.4" > setDeleteHandler< / A > < / B > (<!1> < A HREF = "DeleteHandler.html" > DeleteHandler< / A > * handler)
2003-04-18 00:22:51 +08:00
< DD > < I > Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to< / I >
< DT >
2003-10-02 22:28:30 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > static <!1> < A HREF = "DeleteHandler.html" > DeleteHandler< / A > * < B > < A HREF = "#DOC.2.164.5" > getDeleteHandler< / A > < / B > ()
2003-04-18 00:22:51 +08:00
< DD > < I > Get a DeleteHandler< / I >
< DT >
2003-10-02 22:28:30 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.164.6" > ref< / A > < / B > () const
2003-04-18 00:22:51 +08:00
< DD > < I > increment the reference count by one, indicating that this object has another pointer which is referencing it< / I >
< DT >
2003-10-02 22:28:30 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.164.7" > unref_nodelete< / A > < / B > () const
2003-04-18 00:22:51 +08:00
< DD > < I > decrement the reference count by one, indicating that a pointer to this object is referencing it.< / I >
< DT >
2003-10-02 22:28:30 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline int < B > < A HREF = "#DOC.2.164.8" > referenceCount< / A > < / B > () const
2003-04-18 00:22:51 +08:00
< DD > < I > return the number pointers currently referencing this object.< / I >
< DT >
2003-10-02 22:28:30 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.164.11" > unref< / A > < / B > () const
2003-04-18 00:22:51 +08:00
< DD > < I > decrement the reference count by one, indicating that a pointer to this object is referencing it.< / I >
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Fields< / H3 > < DD > < DT >
2003-10-02 22:28:30 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > mutable int < B > < A HREF = "#DOC.2.164.10" > _refCount< / A > < / B >
2003-04-18 00:22:51 +08:00
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Methods< / H3 > < DD > < DT >
2003-10-02 22:28:30 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual < B > < A HREF = "#DOC.2.164.9" > ~Referenced< / A > < / B > ()
2003-04-18 00:22:51 +08:00
< / DL > < / P >
< / DL >
< A NAME = "DOC.DOCU" > < / A >
< HR >
< H2 > Documentation< / H2 >
< BLOCKQUOTE > Base class from providing referencing counted objects< / BLOCKQUOTE >
< DL >
< A NAME = "Referenced" > < / A >
2003-10-02 22:28:30 +08:00
< A NAME = "DOC.2.164.1" > < / A >
2003-04-18 00:22:51 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > Referenced()< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "Referenced" > < / A >
2003-10-02 22:28:30 +08:00
< A NAME = "DOC.2.164.2" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > Referenced(const <!1> < A HREF = "Referenced.html#DOC.2.164.2" > Referenced< / A > & )< / B > < / TT >
2003-04-18 00:22:51 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "operator = " > < / A >
2003-10-02 22:28:30 +08:00
< A NAME = "DOC.2.164.3" > < / A >
2003-04-18 00:22:51 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline <!1> < A HREF = "Referenced.html" > Referenced< / A > & operator = (<!1> < A HREF = "Referenced.html" > Referenced< / A > & )< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setDeleteHandler" > < / A >
2003-10-02 22:28:30 +08:00
< A NAME = "DOC.2.164.4" > < / A >
2003-04-18 00:22:51 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > static void setDeleteHandler(<!1> < A HREF = "DeleteHandler.html" > DeleteHandler< / A > * handler)< / B > < / TT >
< DD > Set a DeleteHandler to which deletion of all referenced counted objects
will be delegated to
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getDeleteHandler" > < / A >
2003-10-02 22:28:30 +08:00
< A NAME = "DOC.2.164.5" > < / A >
2003-04-18 00:22:51 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > static <!1> < A HREF = "DeleteHandler.html" > DeleteHandler< / A > * getDeleteHandler()< / B > < / TT >
< DD > Get a DeleteHandler
< DL > < DT > < DD > < / DL > < P >
< A NAME = "ref" > < / A >
2003-10-02 22:28:30 +08:00
< A NAME = "DOC.2.164.6" > < / A >
2003-04-18 00:22:51 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void ref() const < / B > < / TT >
< DD > increment the reference count by one, indicating that
this object has another pointer which is referencing it
< DL > < DT > < DD > < / DL > < P >
< A NAME = "unref_nodelete" > < / A >
2003-10-02 22:28:30 +08:00
< A NAME = "DOC.2.164.7" > < / A >
2003-04-18 00:22:51 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void unref_nodelete() const < / B > < / TT >
< DD > decrement the reference count by one, indicating that
a pointer to this object is referencing it. However, do
not delete it, even if ref count goes to 0. Warning, unref_nodelete()
should only be called if the user knows exactly who will
be resonsible for, one should prefer unref() over unref_nodelete()
as the later can lead to memory leaks.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "referenceCount" > < / A >
2003-10-02 22:28:30 +08:00
< A NAME = "DOC.2.164.8" > < / A >
2003-04-18 00:22:51 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline int referenceCount() const < / B > < / TT >
< DD > return the number pointers currently referencing this object.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "~Referenced" > < / A >
2003-10-02 22:28:30 +08:00
< A NAME = "DOC.2.164.9" > < / A >
2003-04-18 00:22:51 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual ~Referenced()< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_refCount" > < / A >
2003-10-02 22:28:30 +08:00
< A NAME = "DOC.2.164.10" > < / A >
2003-04-18 00:22:51 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > mutable int _refCount< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "unref" > < / A >
2003-10-02 22:28:30 +08:00
< A NAME = "DOC.2.164.11" > < / A >
2003-04-18 00:22:51 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void unref() const < / B > < / TT >
< DD > decrement the reference count by one, indicating that
a pointer to this object is referencing it. If the
reference count goes to zero, it is assumed that this object
is no longer referenced and is automatically deleted.
< DL > < DT > < DD > < / DL > < P > < / DL >
< HR >
< DL > < DT > < B > Direct child classes:
< / B > < DD > < A HREF = "Test.html" > Test< / A > < BR >
2003-10-02 22:28:30 +08:00
< A HREF = "Extensions.8.html" > Extensions< / A > < BR >
2003-04-18 00:22:51 +08:00
< A HREF = "SubloadCallback.5.html" > SubloadCallback< / A > < BR >
< A HREF = "SubloadCallback.4.html" > SubloadCallback< / A > < BR >
2003-10-02 22:28:30 +08:00
< A HREF = "Extensions.7.html" > Extensions< / A > < BR >
2003-04-18 00:22:51 +08:00
< A HREF = "SubloadCallback.3.html" > SubloadCallback< / A > < BR >
2003-10-02 22:28:30 +08:00
< A HREF = "Extensions.6.html" > Extensions< / A > < BR >
2003-04-18 00:22:51 +08:00
< A HREF = "SubloadCallback.2.html" > SubloadCallback< / A > < BR >
< A HREF = "SubloadCallback.html" > SubloadCallback< / A > < BR >
2003-07-23 19:27:31 +08:00
< A HREF = "TextureObjectManager.html" > TextureObjectManager< / A > < BR >
< A HREF = "TextureObject.html" > TextureObject< / A > < BR >
2003-10-02 22:28:30 +08:00
< A HREF = "Extensions.5.html" > Extensions< / A > < BR >
2003-04-18 00:22:51 +08:00
< A HREF = "State.html" > State< / A > < BR >
< A HREF = "Object.html" > Object< / A > < BR >
2003-07-23 19:27:31 +08:00
< A HREF = "DatabaseRequestHandler.html" > DatabaseRequestHandler< / A > < BR >
2003-04-18 00:22:51 +08:00
< A HREF = "NodeVisitor.html" > NodeVisitor< / A > < BR >
2003-10-02 22:28:30 +08:00
< A HREF = "Extensions.4.html" > Extensions< / A > < BR >
2003-04-18 00:22:51 +08:00
< A HREF = "LineSegment.html" > LineSegment< / A > < BR >
< A HREF = "ImpostorSpriteManager.html" > ImpostorSpriteManager< / A > < BR >
< A HREF = "FrameStamp.html" > FrameStamp< / A > < BR >
2003-10-02 22:28:30 +08:00
< A HREF = "Extensions.3.html" > Extensions< / A > < BR >
2003-07-23 19:27:31 +08:00
< A HREF = "Extensions.2.html" > Extensions< / A > < BR >
2003-04-18 00:22:51 +08:00
< A HREF = "DisplaySettings.html" > DisplaySettings< / A > < BR >
< A HREF = "CullingSet.html" > CullingSet< / A > < BR >
2003-10-02 22:28:30 +08:00
< A HREF = "Extensions.html" > Extensions< / A > < BR >
2003-04-18 00:22:51 +08:00
< / DL >
< DL > < DT > < DT > < B > Friends:< / B > < DD > class <!1> < A HREF = "DeleteHandler.html" > DeleteHandler< / A > < BR > < 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://docpp.sourceforge.net" > DOC++< / A > .
< / BODY >
< / HTML >