LCFIVertex
0.7.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
vertex_lcfi
util
src
memorymanager.cpp
1
#include <util/inc/memorymanager.h>
2
3
namespace
vertex_lcfi
4
{
5
6
MetaMemoryManager::MetaMemoryManager
()
7
{}
8
9
MetaMemoryManager
*
MetaMemoryManager::Event
()
10
{
11
static
MetaMemoryManager
eventInstance;
12
return
&eventInstance;
13
}
14
15
MetaMemoryManager
*
MetaMemoryManager::Run
()
16
{
17
static
MetaMemoryManager
runInstance;
18
return
&runInstance;
19
}
20
21
void
MetaMemoryManager::delAllObjects
()
22
{
23
for
(std::vector<MemoryManagerType*>::iterator iMem = _Types.begin();iMem != _Types.end();++iMem)
24
(*iMem)->delAll();
25
}
26
27
void
MetaMemoryManager::registerType
(
MemoryManagerType
* Type)
28
{
29
_Types.push_back(Type);
30
}
31
32
}
33
34
vertex_lcfi::MetaMemoryManager::Event
static MetaMemoryManager * Event()
Returns the Event duration singleton instance of the controller.
Definition:
memorymanager.cpp:9
vertex_lcfi::MetaMemoryManager::MetaMemoryManager
MetaMemoryManager()
Do not use.
Definition:
memorymanager.cpp:6
vertex_lcfi::MetaMemoryManager::delAllObjects
void delAllObjects()
Delete all objects of all types held by this instance.
Definition:
memorymanager.cpp:21
vertex_lcfi::MetaMemoryManager
MemoryManager Controller - see MemoryManager.
Definition:
include/vertex_lcfi/util/inc/memorymanager.h:24
vertex_lcfi::MetaMemoryManager::Run
static MetaMemoryManager * Run()
Returns the Run duration singleton instance of the controller.
Definition:
memorymanager.cpp:15
vertex_lcfi::MemoryManagerType
Base class for all MemoryManagers.
Definition:
include/vertex_lcfi/util/inc/memorymanager.h:9
vertex_lcfi::MetaMemoryManager::registerType
void registerType(MemoryManagerType *Type)
Used by the MemoryManager of each type to alert the controller of its existance.
Definition:
memorymanager.cpp:27
Generated on Fri Dec 2 2016 12:36:49 for LCFIVertex by
1.8.6