Geant4  10.00.p01
G4EnhancedVecAllocator< _Tp > Class Template Reference

#include <G4EnhancedVecAllocator.hh>

+ Inheritance diagram for G4EnhancedVecAllocator< _Tp >:
+ Collaboration diagram for G4EnhancedVecAllocator< _Tp >:

Classes

struct  rebind
 

Public Member Functions

 G4EnhancedVecAllocator ()
 
 G4EnhancedVecAllocator (const G4EnhancedVecAllocator< _Tp > &)
 
template<typename _Tp1 >
 G4EnhancedVecAllocator (const G4EnhancedVecAllocator< _Tp1 > &)
 
 ~G4EnhancedVecAllocator ()
 
void deallocate (_Tp *_Ptr, size_t _Count)
 
_Tp * allocate (size_t _Count)
 

Detailed Description

template<typename _Tp>
class G4EnhancedVecAllocator< _Tp >

Definition at line 80 of file G4EnhancedVecAllocator.hh.

Constructor & Destructor Documentation

template<typename _Tp>
G4EnhancedVecAllocator< _Tp >::G4EnhancedVecAllocator ( )
inline

Definition at line 87 of file G4EnhancedVecAllocator.hh.

template<typename _Tp>
G4EnhancedVecAllocator< _Tp >::G4EnhancedVecAllocator ( const G4EnhancedVecAllocator< _Tp > &  )
inline

Definition at line 89 of file G4EnhancedVecAllocator.hh.

template<typename _Tp>
template<typename _Tp1 >
G4EnhancedVecAllocator< _Tp >::G4EnhancedVecAllocator ( const G4EnhancedVecAllocator< _Tp1 > &  )
inline

Definition at line 93 of file G4EnhancedVecAllocator.hh.

template<typename _Tp>
G4EnhancedVecAllocator< _Tp >::~G4EnhancedVecAllocator ( )
inline

Definition at line 96 of file G4EnhancedVecAllocator.hh.

Member Function Documentation

template<typename _Tp >
_Tp * G4EnhancedVecAllocator< _Tp >::allocate ( size_t  _Count)

Definition at line 152 of file G4EnhancedVecAllocator.hh.

References G4AllocStats::allocStat, malloc(), G4AllocStats::numCat, G4ChunkIndexType::preAllocated, realloc(), G4ChunkIndexType::size, G4ChunkIndexType::totalspace, and G4AllocStats::totSpace.

+ Here is the call graph for this function:

template<typename _Tp >
void G4EnhancedVecAllocator< _Tp >::deallocate ( _Tp *  _Ptr,
size_t  _Count 
)

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