9 #ifndef ThePEG_ReferenceCounted_H 10 #define ThePEG_ReferenceCounted_H 15 #include "ThePEG/Persistency/PersistentIStream.fh" PersistentIStream is used to read persistent objects from a stream where they were previously written...
CounterType referenceCount() const
Return the reference count.
const unsigned long uniqueId
The unique ID.
ReferenceCounted()
Default constructor.
void incrementReferenceCount() const
Increment the reference count.
This is the main namespace within which all identifiers in ThePEG are declared.
ReferenceCounted & operator=(const ReferenceCounted &)
Assignment.
ReferenceCounted(const ReferenceCounted &)
Copy-constructor.
bool decrementReferenceCount() const
Decrement with the reference count.
RCPtrBase is the base class of RCPtr and ConstRCPtr which are reference counted (smart) pointers...
unsigned int CounterType
The integer type used for counting.
ReferenceCounted must be the (virtual) base class of all classes which may be pointed to by the RCPtr...
CounterType theReferenceCounter
The reference count.
static unsigned long objectCounter
A counter for issuing unique IDs.