class Referable

Base class for an object for which references can be made with the reference class Ref. More...

Definition#include <Referable.h>
Inherited byAlsaDspSource, AudioEncoder, AudioEncoder, AudioSource, BufferedSink, CastSink, Config, ConfigSection, Connector, DarkIce, FileCast, FileSink, IceCast, IceCast2, LameLibEncoder, LameLibEncoder, MultiThreadedConnector, OssDspSource, ShoutCast, Sink, SolarisDspSource, Source, TcpSocket, TcpSocket, VorbisLibEncoder, VorbisLibEncoder
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods

Private Members


Detailed Description

Base class for an object for which references can be made with the reference class Ref.

usage:


  class A : public virtual Referable
  {
     ...
  };

Ref

unsigned int referenceCount

referenceCount

[private]

static const unsigned int maxCount

maxCount

[private]

inline  Referable ( void )
throw ()

Referable

[protected]

Default constructor.

inline  ~Referable ( void )
throw ( Exception )

~Referable

[protected virtual]

Desctructor.

Throws: Exception

inline unsigned int  increaseReferenceCount ( void )
throw ( Exception )

increaseReferenceCount

Increase reference count.

Returns: the new reference count.

Throws: Exception

inline unsigned int  decreaseReferenceCount ( void )
throw ( Exception )

decreaseReferenceCount

Decrease reference count.

Returns: the new reference count.

Throws: Exception

inline unsigned int  getReferenceCount ( void )
throw ()

getReferenceCount

[const]

Get the reference count.

Returns: the reference count.