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

smartable Class Reference

the base class for smart pointers implementation More...

#include <smartpointer.h>

Inheritance diagram for smartable:

guidoelement guidoparam TAccidental TArticulationElement TBeam TClef TCreator TDirectionType TDirectionTypeElement TDirective TEncoding TEnding TExpression TGraceNote TGraphNote TIdentification TKey TMeasure TMidiDevice TMidiInstrument TMusicData TNodeVisitor TNotation TNotationElement TNoteHead TPart TPartList TPartListElement TPitch TRepeat TRights TScore TScoreHeader TScoreInstrument TScoreVisitor TSymbolicNoteDuration TTimeModification TTimeSign TTranspose TTupletDesc TWavyLine TWork xmlattribute xmlelement xmlheader TPartSummary 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

 smartable (const smartable &)
virtual ~smartable ()
 destructor checks for non-zero refCount

smartableoperator= (const smartable &)

Detailed Description

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.


Generated on Tue Mar 23 09:49:49 2004 for LibMusicXML by doxygen 1.3.3