Inheritance diagram for osg::Referenced:

Public Methods | |
| Referenced () | |
| Referenced (const Referenced &) | |
| Referenced & | operator= (Referenced &) |
| void | ref () const |
| increment the reference count by one, indicating that this object has another pointer which is referencing it. | |
| void | unref () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
| void | unref_nodelete () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
| const int | referenceCount () const |
| return the number pointers currently referencing this object. | |
Protected Methods | |
| virtual | ~Referenced () |
Protected Attributes | |
| int | _refCount |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
increment the reference count by one, indicating that this object has another pointer which is referencing it.
|
|
|
return the number pointers currently referencing this object.
|
|
|
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. |
|
|
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. |
|
|
|