EventAnalysis
1.3.0
|
Manager class for data stores. More...
#include <DataStoreManager.h>
Public Types | |
using | GlobalStores = std::list< GlobalDataStore > |
Type of container for global stores. More... | |
using | PassStores = std::list< PassDataStore > |
Type of container for pass stores. More... | |
using | EventStores = std::list< EventDataStore > |
Type of container for event stores. More... | |
Public Member Functions | |
bool | CreateGlobalDataStore (const std::string &name) |
Creates a global data store. More... | |
bool | CreatePassDataStore (const std::string &name) |
Creates a pass data store. More... | |
bool | CreateEventDataStore (const std::string &name) |
Creates an event data store. More... | |
GlobalStorePtr | GetGlobalDataStore (const std::string &name) |
Retrieves a global data store. More... | |
PassStorePtr | GetPassDataStore (const std::string &name) |
Retrieves a pass data store. More... | |
EventStorePtr | GetEventDataStore (const std::string &name) |
Retrieves an event data store. More... | |
GlobalStores & | GetGlobalDataStores () |
Retrieves all the global stores. More... | |
PassStores & | GetPassDataStores () |
Retrieves all the pass stores. More... | |
EventStores & | GetEventDataStores () |
Retrieves all the event stores. More... | |
bool | CleanPassDataStores () |
Clean all the pass data stores. More... | |
bool | CleanEventDataStores () |
Clean all the event data stores. More... | |
bool | CleanGlobalAliases () |
Removes the aliases on all the global stores. More... | |
void | TrackRemovedObjects (bool track=true) |
Enables the tracking of removed objects. More... | |
bool | FreeRemoved (Memory::Status memStatus) |
Release the memory allocated for removed objects in all the event data stores. More... | |
bool | SetAlgoProducedObjects (const AlgoSequence &seq) |
Sets the objects produced by the algorithms for all the data stores. More... | |
Private Attributes | |
GlobalStores | _globalStores |
PassStores | _passStores |
EventStores | _eventStores |
Manager class for data stores.
This class is both a factory and a locator for data stores.
using EA::DataStoreManager::EventStores = std::list<EventDataStore> |
Type of container for event stores.
using EA::DataStoreManager::GlobalStores = std::list<GlobalDataStore> |
Type of container for global stores.
using EA::DataStoreManager::PassStores = std::list<PassDataStore> |
Type of container for pass stores.
bool EA::DataStoreManager::CleanEventDataStores | ( | ) |
Clean all the event data stores.
bool EA::DataStoreManager::CleanGlobalAliases | ( | ) |
Removes the aliases on all the global stores.
bool EA::DataStoreManager::CleanPassDataStores | ( | ) |
Clean all the pass data stores.
bool EA::DataStoreManager::CreateEventDataStore | ( | const std::string & | name | ) |
Creates an event data store.
If an event data store with the same name already exists then nothing happens. The data store is cleaned at the end of each event processing.
name | The name of the desired data store. |
bool EA::DataStoreManager::CreateGlobalDataStore | ( | const std::string & | name | ) |
Creates a global data store.
If a global data store with the same name already exists then nothing happens. The data store is never cleaned during the whole program execution.
name | The name of the desired data store. |
bool EA::DataStoreManager::CreatePassDataStore | ( | const std::string & | name | ) |
Creates a pass data store.
If a pass data store with the same name already exists then nothing happens. The data store is cleaned at the end of each processing pass.
name | The name of the desired data store. |
bool EA::DataStoreManager::FreeRemoved | ( | Memory::Status | memStatus | ) |
Release the memory allocated for removed objects in all the event data stores.
This method asks all the event data stores to free the memory allocated for removed objects. The memStatus
code is passed to the producers, which are free to decide whether to actually free the memory or not and to which degree, based on the memory status code. However, with a value of Memory::Status::EXHAUSTED all the producers are required to free all the removed objects they handle.
memStatus | The memory status code. |
EventStorePtr EA::DataStoreManager::GetEventDataStore | ( | const std::string & | name | ) |
Retrieves an event data store.
If the data store does not exists then a #Retrieval::NotFound exception is thrown. The data store is cleaned at the end of each event processing.
name | The name of the desired data store. |
Retrieval::NotFound | if the requested data store does not exist. |
|
inline |
Retrieves all the event stores.
GlobalStorePtr EA::DataStoreManager::GetGlobalDataStore | ( | const std::string & | name | ) |
Retrieves a global data store.
If the data store does not exists then a #Retrieval::NotFound exception is thrown. The data store is never cleaned during the whole program execution.
name | The name of the desired data store. |
Retrieval::NotFound | if the requested data store does not exist. |
|
inline |
Retrieves all the global stores.
PassStorePtr EA::DataStoreManager::GetPassDataStore | ( | const std::string & | name | ) |
Retrieves a pass data store.
If the data store does not exists then a #Retrieval::NotFound exception is thrown. The data store is cleaned at the end of each processing pass.
name | The name of the desired data store. |
Retrieval::NotFound | if the requested data store does not exist. |
|
inline |
Retrieves all the pass stores.
bool EA::DataStoreManager::SetAlgoProducedObjects | ( | const AlgoSequence & | seq | ) |
Sets the objects produced by the algorithms for all the data stores.
seq | The sequence of algorithms. |
void EA::DataStoreManager::TrackRemovedObjects | ( | bool | track = true | ) |
Enables the tracking of removed objects.
This method asks all the event data stores to track the removed objects by calling the #DataStore::TrackRemovedObjects method.
track | If true then the tracking of the removed objects will be enabled, otherwise it will be disabled. |
|
private |
|
private |
|
private |