MAUtil::RefCounted Class Reference

#include <MAUtil/RefCounted.h>

Inheritance diagram for MAUtil::RefCounted:

MAUtil::StringData List of all members.

Detailed Description

A base class for reference counting.


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 ()


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

void MAUtil::RefCounted::addRef  ) 
 

Increments the reference count by one.

void MAUtil::RefCounted::release  ) 
 

Decrements the reference count by one.

int MAUtil::RefCounted::getRefCount  ) 
 

Returns the current reference count.


Generated on Sat Feb 13 00:15:40 2010 for MoSync 2 beta 1 by  doxygen 1.4.6-NO