ATLAS Offline Software
Loading...
Searching...
No Matches
IdentifiableContainerBase.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
5#include <algorithm>
12
13using namespace EventContainers;
14
20
26
27
29 m_OnlineMode = false;
30 if(mode == Mode::OfflineLowMemory) m_link = std::make_unique<EventContainers::InternalOffline>(max);
31 else if(mode == Mode::OfflineFast) m_link = std::make_unique<EventContainers::InternalOfflineFast>(max);
32 else if(mode == Mode::OfflineMap) m_link = std::make_unique<EventContainers::InternalOfflineMap>(max);
33 else{
34 throw std::runtime_error("Invalid Mode specified");
35 }
36 }
37
39 if(m_OnlineMode) throw std::runtime_error("Not implemented in online mode");
40 m_link->cleanUp(deleter);
41 }
#define max(a, b)
Definition cfImp.cxx:41
IdentifiableContainerBase(EventContainers::IdentifiableCacheBase *cache)
STL namespace.