File: ReferenceCounted.h
Description:
ReferenceCounted must be the (virtual) base class of all
classes which may be pointed to by the RCPtr smart
pointer class. It keeps track of all RCPtr and
ConstRCPtr pointers which are currently pointing to an
object.
See
also:
namespace Pythia7
namespace Pointer
CLASS
ReferenceCounted
Friends
Public members:
typedef unsigned int CounterType;
Protected members:
inline ReferenceCounted();
inline ReferenceCounted(const ReferenceCounted &);
inline ReferenceCounted & operator=(const ReferenceCounted &);
Standard ctors and assignment.
Public members:
inline CounterType referenceCount() const;
Return the reference count.
Private members:
inline void incrementReferenceCount() const;
inline bool decrementReferenceCount() const;
Mess with the reference count.
mutable CounterType theReferenceCounter;
The reference count.
DEFINED MACROS
PYTHIA7_ReferenceCounted_H
INCLUDED FILES
RCPtr.fh
ReferenceCounted.icc