54 #ifndef _G4REFERENCECOUNTEDHANDLE_H_
55 #define _G4REFERENCECOUNTEDHANDLE_H_ 1
84 inline unsigned int Count()
const;
96 inline operator bool()
const;
106 inline void*
operator new( size_t );
109 inline void operator delete(
void *pObj );
145 inline void*
operator new( size_t );
148 inline void operator delete(
void *pObj );
166 : fCount(0), fRep( pObj )
168 if( pObj != 0 )
fCount = 1;
186 if( --fCount == 0 )
delete this;
267 return( ( !
fObj ) ?
true :
false );
273 return( (
fObj ) ?
true :
false );
296 #endif // _G4REFERENCECOUNTEDHANDLE_H_
G4ReferenceCountedHandle< X > & operator=(const G4ReferenceCountedHandle< X > &right)
G4CountedObject< X > * fObj
unsigned int Count() const
G4CountedObject(X *pObj=0)
G4ReferenceCountedHandle(X *rep=0)
G4GLOB_DLL G4Allocator< G4ReferenceCountedHandle< void > > *& aRCHAllocator()
G4GLOB_DLL G4Allocator< G4CountedObject< void > > *& aCountedObjectAllocator()
~G4ReferenceCountedHandle()