MoSync 3.3
MAUtil::RefCounted Class Reference

A base class for reference counting. More...

#include <MAUtil/RefCounted.h>

Inheritance diagram for MAUtil::RefCounted:
MAUtil::StringData< Tchar >

List of all members.

Public Member Functions

 RefCounted (int startCount=1)
 Constructor, initializes the initial reference count to startCount.
void addRef ()
 Increments the reference count by one.
void release ()
 Decrements the reference count by one.
int getRefCount ()
 Returns the current reference count.
virtual ~RefCounted ()

Detailed Description

A base class for reference counting.


Constructor & Destructor Documentation

MAUtil::RefCounted::RefCounted ( int  startCount = 1)

Constructor, initializes the initial reference count to startCount.

virtual MAUtil::RefCounted::~RefCounted ( ) [inline, virtual]

Member Function Documentation

Increments the reference count by one.

Decrements the reference count by one.

Returns the current reference count.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines