ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4INCLAllocationPool.hh File Reference

Singleton for recycling allocation of instances of a given class. More...

#include "globals.hh"
#include <stack>
#include <new>
#include <cstddef>
+ Include dependency graph for G4INCLAllocationPool.hh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  G4INCL::AllocationPool< T >
 

Namespaces

namespace  G4INCL
 

Macros

#define INCLXX_IN_GEANT4_MODE   1
 
#define G4INCLALLOCATIONPOOL_HH
 
#define INCL_DECLARE_ALLOCATION_POOL(T)
 

Detailed Description

Singleton for recycling allocation of instances of a given class.

Date
2nd October 2014
Author
Davide Mancusi

Definition in file G4INCLAllocationPool.hh.

Macro Definition Documentation

#define G4INCLALLOCATIONPOOL_HH

Definition at line 46 of file G4INCLAllocationPool.hh.

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

#define INCL_DECLARE_ALLOCATION_POOL (   T)
Value:
public: \
static void *operator new(size_t /* s */) { \
return allocator.getObject(); \
} \
static void operator delete(void *a, size_t /* s */) { \
allocator.recycleObject(static_cast<T *>(a)); \
}

Definition at line 103 of file G4INCLAllocationPool.hh.

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

#define INCLXX_IN_GEANT4_MODE   1

Definition at line 34 of file G4INCLAllocationPool.hh.

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