class SG_EXPORT osg::Referenced

Base class from providing referencing counted objects

Inheritance:


Public Methods

[more] Referenced()
[more] Referenced(const Referenced&)
[more]inline Referenced& operator = (Referenced&)
[more]inline void ref() const
increment the reference count by one, indicating that this object has another pointer which is referencing it
[more]inline void unref() const
decrement the reference count by one, indicating that a pointer to this object is referencing it.
[more]inline const int referenceCount() const
return the number pointers currently referencing this object.

Protected Fields

[more]mutable int _refCount

Protected Methods

[more]virtual ~Referenced()


Documentation

Base class from providing referencing counted objects
o Referenced()

o Referenced(const Referenced&)

oinline Referenced& operator = (Referenced&)

oinline void ref() const
increment the reference count by one, indicating that this object has another pointer which is referencing it

oinline void unref() const
decrement the reference count by one, indicating that a pointer to this object is referencing it. If the refence count goes to zero, it is assumed that this object is nolonger referenced and is automatically deleted.

oinline const int referenceCount() const
return the number pointers currently referencing this object.

ovirtual ~Referenced()

omutable int _refCount


Direct child classes:
State
Object
NodeVisitor
NodeCallback
MemoryAdapter
LineSegment
ImpostorSpriteManager
FrameStamp
Camera

Alphabetic index HTML hierarchy of classes or Java



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