sp_smartable Class Reference

the base class for smart pointers implementation More...

#include <sp_smartpointer.h>

Inheritance diagram for sp_smartable:

ScoreProcessing::Action ScoreProcessing::ActionFilter ScoreProcessing::Annotation ScoreProcessing::AnnotationsList ScoreProcessing::Exercise ScoreProcessing::FeedbackCurve ScoreProcessing::Music ScoreProcessing::ScoreProcessingFacade ScoreProcessing::TimeConverter

List of all members.

Public Member Functions

unsigned refs () const
 gives the reference count of the object
void addReference ()
 addReference increments the ref count and checks for refCount overflow
void removeReference ()
 removeReference delete the object when refCount is zero

Protected Member Functions

 sp_smartable ()
 sp_smartable (const sp_smartable &)
virtual ~sp_smartable ()
 destructor checks for non-zero refCount
sp_smartableoperator= (const sp_smartable &)


Detailed Description

the base class for smart pointers implementation

Any object that want to support smart pointers should inherit from the smartable class which provides reference counting and automatic delete when the reference count drops to zero.


Constructor & Destructor Documentation

sp_smartable::sp_smartable (  )  [inline, protected]

sp_smartable::sp_smartable ( const sp_smartable  )  [inline, protected]

virtual sp_smartable::~sp_smartable (  )  [inline, protected, virtual]

destructor checks for non-zero refCount


Member Function Documentation

void sp_smartable::addReference (  ) 

addReference increments the ref count and checks for refCount overflow

sp_smartable& sp_smartable::operator= ( const sp_smartable  )  [inline, protected]

unsigned sp_smartable::refs (  )  const [inline]

gives the reference count of the object

void sp_smartable::removeReference (  ) 

removeReference delete the object when refCount is zero


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

Generated on Wed Jan 28 19:15:48 2009 for VEMUS by  doxygen 1.5.8