49#ifndef G4REFERENCECOUNTEDHANDLE_HH
50#define G4REFERENCECOUNTEDHANDLE_HH 1
78 inline unsigned int Count()
const;
90 inline operator bool()
const;
100 inline void*
operator new(std::size_t);
103 inline void operator delete(
void* pObj);
135 inline void*
operator new(std::size_t);
138 inline void operator delete(
void* pObj);
142 unsigned int fCount = 0;
222 if(fObj != right.fObj)
226 this->fObj = right.fObj;
244 return ((fObj !=
nullptr) ? fObj->fCount : 0);
250 return ((fObj !=
nullptr) ? fObj->fRep : 0);
256 return fObj ==
nullptr;
262 return fObj !=
nullptr;
268 return ((fObj !=
nullptr) ? fObj->fRep :
nullptr);
G4GLOB_DLL G4Allocator< G4CountedObject< void > > *& aCountedObjectAllocator()
G4GLOB_DLL G4Allocator< G4ReferenceCountedHandle< void > > *& aRCHAllocator()
G4CountedObject(X *pObj=nullptr)
G4ReferenceCountedHandle< X > & operator=(X *objPtr)
unsigned int Count() const
G4ReferenceCountedHandle< X > & operator=(const G4ReferenceCountedHandle< X > &right)
G4ReferenceCountedHandle(X *rep=nullptr)
G4ReferenceCountedHandle(const G4ReferenceCountedHandle< X > &right)
~G4ReferenceCountedHandle()