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