CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csRefCount Class Reference

This is a class which provides basic reference-counting semantics. More...

#include <refcount.h>

Inheritance diagram for csRefCount:

csCondition csMutex csSemaphore csShaderVariable csThread List of all members.

Public Methods

 csRefCount ()
 Initialize object and set reference to 1.

void IncRef ()
 Increase the number of references to this object.

void DecRef ()
 Decrease the number of references to this object.

int GetRefCount () const
 Get the reference count (only for debugging).


Detailed Description

This is a class which provides basic reference-counting semantics.

It can be used in conjunction with the smart pointer template class csRef (see <ref.h>). This class itself provides no functionality beyond reference counting. It is intended that you should subclass csRef and add needed functionality.

Definition at line 30 of file refcount.h.


Constructor & Destructor Documentation

csRefCount::csRefCount   [inline]
 

Initialize object and set reference to 1.

Definition at line 48 of file refcount.h.


Member Function Documentation

void csRefCount::DecRef   [inline]
 

Decrease the number of references to this object.

Definition at line 53 of file refcount.h.

int csRefCount::GetRefCount   const [inline]
 

Get the reference count (only for debugging).

Definition at line 60 of file refcount.h.

void csRefCount::IncRef   [inline]
 

Increase the number of references to this object.

Definition at line 51 of file refcount.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.18