Logo Search packages:      
Sourcecode: blender version File versions  Download package

MEM_RefCounted Class Reference

#include <MEM_RefCounted.h>

List of all members.

Detailed Description

An object with reference counting. Base class for objects with reference counting. When a shared object is ceated, it has reference count == 1. If the the reference count of a shared object reaches zero, the object self-destructs. The default destructor of this object has been made protected on purpose. This disables the creation of shared objects on the stack.

Maarten Gribnau
March 31, 2001

Definition at line 48 of file MEM_RefCounted.h.

Public Member Functions

virtual int decRef ()
virtual int getRef () const
virtual int incRef ()
 MEM_RefCounted ()

Protected Member Functions

virtual ~MEM_RefCounted ()

Protected Attributes

int m_refCount
 The reference count.

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index