|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #ifndef EVENTCONTAINERS_IDENTIFIABLETEMP_H
7 #define EVENTCONTAINERS_IDENTIFIABLETEMP_H
47 std::vector<IdentifierHash>
out;
54 if(hashId >=
m_randomcont.size())
return StatusCode::FAILURE;
57 return StatusCode::SUCCESS;
62 if(hashId >=
m_randomcont.size())
return StatusCode::FAILURE;
67 return StatusCode::SUCCESS;
71 if(hashId >=
m_randomcont.size())
return StatusCode::FAILURE;
76 return StatusCode::SUCCESS;
89 return m_extIDC->tryAddFromCache(hashId);
99 if(hashId >=
m_randomcont.size())
return StatusCode::FAILURE;
101 return StatusCode::SUCCESS;
106 auto ptr = std::unique_ptr<const T>(
x.second);
108 if(
sc.isFailure()) {
return StatusCode::FAILURE; }
112 return StatusCode::SUCCESS;
virtual const T * indexFindPtr(IdentifierHash hashId) const override
virtual StatusCode addOrDelete(std::unique_ptr< const T > ptr, IdentifierHash hashId) override
std::vector< std::pair< IdentifierHash, const T * > > m_usedhashes
IdentifiableContTemp(size_t size)
virtual ~IdentifiableContTemp()
IdentifiableContainerMT< T > * m_extIDC
virtual StatusCode addOrDelete(std::unique_ptr< T > ptr, IdentifierHash hashId)=0
IdentifiableContTemp(const IdentifiableContTemp &that)=delete
StatusCode MergeToRealContainer(IIdentifiableCont< T > *real)
::StatusCode StatusCode
StatusCode definition for legacy code.
IdentifiableContTemp(IdentifiableContainerMT< T > *extcache=nullptr)
virtual std::vector< IdentifierHash > GetAllCurrentHashes() const override
virtual size_t numberOfCollections() const override
virtual bool hasExternalCache() const override
virtual StatusCode naughtyRetrieve(IdentifierHash hashId, T *&collToRetrieve) const =0
virtual StatusCode addCollection(const T *coll, IdentifierHash hashId) override
IdentifiableContTemp(size_t size, IdentifiableContainerMT< T > *extcache)
virtual StatusCode addOrDelete(std::unique_ptr< T > ptr, IdentifierHash hashId) override
virtual size_t fullSize() const override
virtual StatusCode naughtyRetrieve ATLAS_NOT_THREAD_SAFE(IdentifierHash hashId, T *&collToRetrieve) const override
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
std::vector< const T * > m_randomcont
virtual bool tryAddFromCache(IdentifierHash hashId) override
IdentifiableContTemp()=delete
IdentifiableContTemp & operator=(const IdentifiableContTemp &)=delete
virtual void cleanup() override