ATLAS Offline Software
|
Service to access an arena caching allocator. More...
#include <SegMemSvc.h>
Public Types | |
enum | LIFETIME { EVENT = 0, JOB = 1, INCIDENT = 2 } |
Internals: Gaudi boilerplate | |
virtual StatusCode | initialize () |
virtual StatusCode | reinitialize () |
virtual StatusCode | finalize () |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvInterface) |
virtual void | handle (const Incident &) |
static const InterfaceID & | interfaceID () |
Client Interface: allocate and free memory | |
ServiceHandle< IIncidentSvc > | p_incSvc |
SG::ArenaHeader | m_ahead_job |
three arenas for different lifetimes More... | |
SG::ArenaHeader | m_ahead_evt |
SG::ArenaHeader | m_ahead_inc |
SG::Arena | m_arena_job |
SG::Arena | m_arena_evt |
SG::Arena | m_arena_inc |
template<typename T > | |
T * | allocate (SegMemSvc::LIFETIME, bool cache=true) |
Get pointer to an area in the arena, used for new with placement. More... | |
template<typename T > | |
bool | del (T *) |
free memory managed by arena More... | |
SegMemSvc (const std::string &name, ISvcLocator *svc) | |
virtual | ~SegMemSvc () |
std::string | cvt (SegMemSvc::LIFETIME life) |
helper to for printout More... | |
Service to access an arena caching allocator.
No | user settable jobOptions |
Definition at line 29 of file SegMemSvc.h.
enum SegMemSvc::LIFETIME |
Enumerator | |
---|---|
EVENT | |
JOB | |
INCIDENT |
Definition at line 35 of file SegMemSvc.h.
SegMemSvc::SegMemSvc | ( | const std::string & | name, |
ISvcLocator * | svc | ||
) |
Definition at line 18 of file SegMemSvc.cxx.
|
virtual |
Definition at line 30 of file SegMemSvc.cxx.
T* SegMemSvc::allocate | ( | SegMemSvc::LIFETIME | , |
bool | cache = true |
||
) |
Get pointer to an area in the arena, used for new with placement.
LIFETIME | object lifetime in the arena: EVENT, JOB or INCIDENT |
|
inlineprivate |
bool SegMemSvc::del | ( | T * | ) |
free memory managed by arena
|
virtual |
Definition at line 83 of file SegMemSvc.cxx.
|
virtual |
Definition at line 92 of file SegMemSvc.cxx.
|
virtual |
Definition at line 55 of file SegMemSvc.cxx.
|
inlinestatic |
Definition at line 50 of file SegMemSvc.h.
|
virtual |
Definition at line 35 of file SegMemSvc.cxx.
|
virtual |
Definition at line 74 of file SegMemSvc.cxx.
|
private |
Definition at line 99 of file SegMemSvc.h.
|
private |
Definition at line 99 of file SegMemSvc.h.
|
private |
three arenas for different lifetimes
Definition at line 99 of file SegMemSvc.h.
|
private |
Definition at line 100 of file SegMemSvc.h.
|
private |
Definition at line 100 of file SegMemSvc.h.
|
private |
Definition at line 100 of file SegMemSvc.h.
|
private |
Definition at line 86 of file SegMemSvc.h.