Geant4  10.00.p01
G4CountedObject< X > Class Template Reference

#include <G4ReferenceCountedHandle.hh>

+ Inheritance diagram for G4CountedObject< X >:
+ Collaboration diagram for G4CountedObject< X >:

Public Member Functions

 G4CountedObject (X *pObj=0)
 
 ~G4CountedObject ()
 
void AddRef ()
 
void Release ()
 
void * operator new (size_t)
 
void operator delete (void *pObj)
 

Private Attributes

unsigned int fCount
 
X * fRep
 

Friends

class G4ReferenceCountedHandle< X >
 

Detailed Description

template<class X>
class G4CountedObject< X >

Definition at line 60 of file G4ReferenceCountedHandle.hh.

Constructor & Destructor Documentation

template<class X>
G4CountedObject< X >::G4CountedObject ( X *  pObj = 0)

Definition at line 172 of file G4ReferenceCountedHandle.hh.

References G4CountedObject< X >::fCount.

template<class X >
G4CountedObject< X >::~G4CountedObject ( )

Definition at line 179 of file G4ReferenceCountedHandle.hh.

Member Function Documentation

template<class X >
void G4CountedObject< X >::AddRef ( )
inline

Definition at line 185 of file G4ReferenceCountedHandle.hh.

template<class X >
void G4CountedObject< X >::operator delete ( void *  pObj)
inline

Definition at line 205 of file G4ReferenceCountedHandle.hh.

References aCountedObjectAllocator.

template<class X >
void * G4CountedObject< X >::operator new ( size_t  )
inline

Definition at line 197 of file G4ReferenceCountedHandle.hh.

References aCountedObjectAllocator.

template<class X >
void G4CountedObject< X >::Release ( )
inline

Definition at line 191 of file G4ReferenceCountedHandle.hh.

Friends And Related Function Documentation

template<class X>
friend class G4ReferenceCountedHandle< X >
friend

Definition at line 133 of file G4ReferenceCountedHandle.hh.

Member Data Documentation

template<class X>
unsigned int G4CountedObject< X >::fCount
private

Definition at line 161 of file G4ReferenceCountedHandle.hh.

Referenced by G4CountedObject< X >::G4CountedObject().

template<class X>
X* G4CountedObject< X >::fRep
private

Definition at line 163 of file G4ReferenceCountedHandle.hh.


The documentation for this class was generated from the following file: