ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4INCL::AllocationPool< T > Class Template Reference

#include <geant4/tree/geant4-10.6-release/source/processes/hadronic/models/inclxx/utils/include/G4INCLAllocationPool.hh>

+ Collaboration diagram for G4INCL::AllocationPool< T >:

Public Member Functions

TgetObject ()
 
void recycleObject (T *t)
 
void clear ()
 

Static Public Member Functions

static AllocationPoolgetInstance ()
 

Protected Member Functions

 AllocationPool ()
 
virtual ~AllocationPool ()
 

Protected Attributes

std::stack< T * > theStack
 

Static Protected Attributes

static G4ThreadLocal
AllocationPool
theInstance = 0
 

Detailed Description

template<typename T>
class G4INCL::AllocationPool< T >

Definition at line 57 of file G4INCLAllocationPool.hh.

View newest version in sPHENIX GitHub at line 57 of file G4INCLAllocationPool.hh

Constructor & Destructor Documentation

template<typename T>
G4INCL::AllocationPool< T >::AllocationPool ( )
inlineprotected

Definition at line 87 of file G4INCLAllocationPool.hh.

View newest version in sPHENIX GitHub at line 87 of file G4INCLAllocationPool.hh

template<typename T>
virtual G4INCL::AllocationPool< T >::~AllocationPool ( )
inlineprotectedvirtual

Definition at line 88 of file G4INCLAllocationPool.hh.

View newest version in sPHENIX GitHub at line 88 of file G4INCLAllocationPool.hh

References G4INCL::AllocationPool< T >::clear().

+ Here is the call graph for this function:

Member Function Documentation

template<typename T>
void G4INCL::AllocationPool< T >::clear ( void  )
inline

Definition at line 79 of file G4INCLAllocationPool.hh.

View newest version in sPHENIX GitHub at line 79 of file G4INCLAllocationPool.hh

References G4INCL::AllocationPool< T >::theStack.

Referenced by G4INCL::AllocationPool< T >::~AllocationPool().

+ Here is the caller graph for this function:

template<typename T>
static AllocationPool& G4INCL::AllocationPool< T >::getInstance ( )
inlinestatic

Definition at line 59 of file G4INCLAllocationPool.hh.

View newest version in sPHENIX GitHub at line 59 of file G4INCLAllocationPool.hh

References G4INCL::AllocationPool< T >::theInstance.

template<typename T>
T* G4INCL::AllocationPool< T >::getObject ( )
inline

Definition at line 65 of file G4INCLAllocationPool.hh.

View newest version in sPHENIX GitHub at line 65 of file G4INCLAllocationPool.hh

References T, t, and G4INCL::AllocationPool< T >::theStack.

template<typename T>
void G4INCL::AllocationPool< T >::recycleObject ( T t)
inline

Definition at line 75 of file G4INCLAllocationPool.hh.

View newest version in sPHENIX GitHub at line 75 of file G4INCLAllocationPool.hh

References G4INCL::AllocationPool< T >::theStack.

Member Data Documentation

template<typename T>
G4ThreadLocal AllocationPool< T > * G4INCL::AllocationPool< T >::theInstance = 0
staticprotected

Definition at line 92 of file G4INCLAllocationPool.hh.

View newest version in sPHENIX GitHub at line 92 of file G4INCLAllocationPool.hh

Referenced by G4INCL::AllocationPool< T >::getInstance().

template<typename T>
std::stack<T*> G4INCL::AllocationPool< T >::theStack
protected

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