|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #ifndef EVENTCONTAINERS_IDENTIFIABLECACHE_H
17 #define EVENTCONTAINERS_IDENTIFIABLECACHE_H
93 #endif // not EVENTCONTAINERS_IDENTIFIABLECACHE_H
const void * findWait(IdentifierHash hash)
Retrieve ptr, will wait if there is something in progress.
const void * get(IdentifierHash hash)
Try to make payload if not there.
std::pair< bool, const void * > add(IdentifierHash hash, const T *p)
const T * findWait(IdentifierHash hash)
virtual std::unique_ptr< T > make(IdentifierHash hash) const =0
const T * get(IdentifierHash hash)
IdentifiableCache(IdentifierHash maxHash, const Maker *maker)
const T * find(IdentifierHash hash)
std::pair< bool, const void * > add(IdentifierHash hash, std::unique_ptr< T > p)
virtual void_unique_ptr typelessMake(IdentifierHash hash) const
void clear(deleter_f *deleter)
IdentifiableCache(IdentifierHash maxHash, const Maker *maker, size_t lockBucketSize)
const void * find(IdentifierHash hash) noexcept
Return payload if there, null if not there.
std::pair< bool, const void * > add(IdentifierHash hash, const void *p) noexcept
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
void cleanUp(deleter_f *deleter)