MeshTex  3.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
RefCounted Class Reference

A mixin for maintaining a reference count associated with an object, and destroying that object when the count falls to zero. More...

#include <RefCounted.h>

Inheritance diagram for RefCounted:
GenericDialog GenericMainMenu MeshVisitor GeneralFunctionDialog GetInfoDialog SetScaleDialog MainMenu GeneralFunctionDialog::GeneralFunctionVisitor GetInfoDialog::GetInfoVisitor MainMenu::PresetFuncVisitor SetScaleDialog::SetScaleVisitor

List of all members.

Public Member Functions

Lifecycle
 RefCounted ()
 Default constructor.
virtual ~RefCounted ()
 Virtual destructor.
Reference counting
void IncRef ()
 Increment reference count.
void DecRef ()
 Decrement reference count, and self-delete if count is <= 0.

Private Attributes

int _refCount
 Reference count.

Detailed Description

A mixin for maintaining a reference count associated with an object, and destroying that object when the count falls to zero.

Since this class implements the IncRef and DecRef interfaces used by the Radiant SmartPointer and SmartReference templates, those templates can automatically handle the reference counting for classes that inherit from RefCounted.


Constructor & Destructor Documentation

RefCounted::RefCounted ( )

Default constructor.

Initialize reference count to zero.


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