ATLAS Offline Software
|
#include <MuonCoinDataContainer.h>
Public Types | |
typedef T | IDENTIFIABLE |
typedef EventContainers::IdentifiableCache< T > | ICACHE |
typedef IdentifiableContainerMT< T > | MyType |
typedef std::vector< std::atomic< const void * > >::size_type | size_type |
typedef T *& | reference |
typedef T *const & | const_reference |
typedef T * | value_type |
typedef T ** | pointer |
typedef T *const * | const_pointer |
typedef T | base_value_type |
typedef std::vector< IdentifierHash > | Hash_Container |
Public Member Functions | |
MuonCoinDataContainer (unsigned int max) | |
MuonCoinDataContainer (EventContainers::IdentifiableCache< CollectionT > *cache) | |
virtual | ~MuonCoinDataContainer () |
virtual const CLID & | clID () const |
return class ID More... | |
virtual bool | hasExternalCache () const override final |
virtual const T * | indexFindPtr (IdentifierHash hashId) const override final |
return pointer on the found entry or null if out of range using hashed index - fast version, does not call cnv if object not there More... | |
const_iterator | indexFind (IdentifierHash hashId) const |
virtual StatusCode | addCollection (const T *coll, IdentifierHash hashId) override final |
insert collection into container with id hash if IDC should not take ownership of collection, set ownsColl to false More... | |
virtual StatusCode | addOrDelete (std::unique_ptr< T >, IdentifierHash hashId) override final |
Tries to add the item to the cache, if the item already exists then it is deleted This is a convenience method for online multithreaded scenarios. More... | |
virtual StatusCode | addOrDelete (std::unique_ptr< const T >, IdentifierHash hashId) override final |
StatusCode | addOrDelete (std::unique_ptr< T >, IdentifierHash hashId, bool &deleted) |
identical to previous excepts allows counting of deletions More... | |
StatusCode | addLock (std::unique_ptr< T > ptr, IdentifierHash hashId) |
Like the other add methods but optimized for changing from the inprogress state. More... | |
virtual bool | tryAddFromCache (IdentifierHash hashId) override final |
Looks in the cache to see if item already exists if not it returns false, If it does exist it incorporates it into the IDC view but changing the mask. More... | |
StatusCode | fetchOrCreate (IdentifierHash hashId) |
Tries will look for item in cache, if it doesn't exist will call the cache IMAKER If cache doesn't have an IMAKER then this fails. More... | |
StatusCode | fetchOrCreate (const std::vector< IdentifierHash > &hashId) |
virtual StatusCode naughtyRetrieve | ATLAS_NOT_THREAD_SAFE (IdentifierHash hashId, T *&collToRetrieve) const override final |
T * | removeCollection (IdentifierHash hashId) |
remove collection from container for id hash, returning it (and ownership) to client More... | |
virtual void | cleanup () override final |
reset m_hashids and call IdentifiableCache's cleanup More... | |
virtual size_t | fullSize () const override final |
return full size of container More... | |
size_t | size () const |
Duplicate of fullSize for backwards compatability. More... | |
void | prepareItr () const |
virtual size_t | numberOfCollections () const override final |
return number of collections More... | |
const std::vector< EventContainers::hashPair< T > > & | GetAllHashPtrPair () const |
virtual std::vector< IdentifierHash > | GetAllCurrentHashes () const override final |
Returns a collection of all hashes availiable in this IDC. More... | |
const_iterator | begin () const |
return const_iterator for first entry More... | |
const_iterator | end () const |
return const_iterator for end of container More... | |
bool | empty () const |
return true if container is empty More... | |
IDC_WriteHandle | getWriteHandle (IdentifierHash hash) |
virtual StatusCode | naughtyRetrieve (IdentifierHash hashId, T *&collToRetrieve) const =0 |
Static Public Member Functions | |
static const CLID & | classID () |
return class ID More... | |
Protected Types | |
typedef EventContainers::IdentifiableCacheBase | IdentifiableCacheBase |
Protected Member Functions | |
bool | tryAddFromCache (IdentifierHash hashId, EventContainers::IDC_WriteHandleBase &lock) |
void | cleanup (deleter_f *deleter) |
bool | insert (IdentifierHash hashId, const void *ptr) |
void | Wait () const |
void | ResetMask () |
Protected Attributes | |
bool | m_OnlineMode |
std::unique_ptr< I_InternalIDC > | m_link |
Private Member Functions | |
MuonCoinDataContainer (const MuonCoinDataContainer &) | |
MuonCoinDataContainer & | operator= (const MuonCoinDataContainer &) |
Definition at line 32 of file MuonCoinDataContainer.h.
|
inherited |
Definition at line 78 of file IdentifiableContainerMT.h.
|
inherited |
Definition at line 77 of file IdentifiableContainerMT.h.
|
inherited |
Definition at line 74 of file IdentifiableContainerMT.h.
|
inherited |
Definition at line 18 of file IdentifiableContainerBase.h.
|
inherited |
Definition at line 70 of file IdentifiableContainerMT.h.
|
inherited |
Definition at line 69 of file IdentifiableContainerMT.h.
|
protectedinherited |
Definition at line 25 of file IdentifiableContainerBase.h.
|
inherited |
Definition at line 71 of file IdentifiableContainerMT.h.
|
inherited |
Definition at line 76 of file IdentifiableContainerMT.h.
|
inherited |
Definition at line 73 of file IdentifiableContainerMT.h.
|
inherited |
Definition at line 72 of file IdentifiableContainerMT.h.
|
inherited |
Definition at line 75 of file IdentifiableContainerMT.h.
Muon::MuonCoinDataContainer< CollectionT >::MuonCoinDataContainer | ( | unsigned int | max | ) |
Muon::MuonCoinDataContainer< CollectionT >::MuonCoinDataContainer | ( | EventContainers::IdentifiableCache< CollectionT > * | cache | ) |
|
virtual |
|
private |
|
finaloverridevirtualinherited |
insert collection into container with id hash if IDC should not take ownership of collection, set ownsColl to false
Implements EventContainers::IIdentifiableCont< T >.
Definition at line 300 of file IdentifiableContainerMT.h.
|
inherited |
Like the other add methods but optimized for changing from the inprogress state.
Definition at line 375 of file IdentifiableContainerMT.h.
|
finaloverridevirtualinherited |
Implements EventContainers::IIdentifiableCont< T >.
|
finaloverridevirtualinherited |
Tries to add the item to the cache, if the item already exists then it is deleted This is a convenience method for online multithreaded scenarios.
Implements EventContainers::IIdentifiableCont< T >.
Definition at line 353 of file IdentifiableContainerMT.h.
|
inherited |
identical to previous excepts allows counting of deletions
Definition at line 382 of file IdentifiableContainerMT.h.
|
finaloverridevirtualinherited |
|
inlineinherited |
return const_iterator for first entry
Definition at line 236 of file IdentifiableContainerMT.h.
|
inlinestatic |
|
finaloverridevirtualinherited |
reset m_hashids and call IdentifiableCache's cleanup
Implements EventContainers::IIdentifiableCont< T >.
Definition at line 312 of file IdentifiableContainerMT.h.
|
protectedinherited |
Definition at line 38 of file IdentifiableContainerBase.cxx.
|
inlinevirtual |
return class ID
Definition at line 60 of file MuonCoinDataContainer.h.
|
inlineinherited |
return true if container is empty
Definition at line 247 of file IdentifiableContainerMT.h.
|
inlineinherited |
return const_iterator for end of container
Definition at line 242 of file IdentifiableContainerMT.h.
|
inherited |
Definition at line 326 of file IdentifiableContainerMT.h.
|
inherited |
Tries will look for item in cache, if it doesn't exist will call the cache IMAKER If cache doesn't have an IMAKER then this fails.
Definition at line 319 of file IdentifiableContainerMT.h.
|
inlinefinaloverridevirtualinherited |
return full size of container
Implements EventContainers::IIdentifiableCont< T >.
Definition at line 204 of file IdentifiableContainerMT.h.
|
inlinefinaloverridevirtualinherited |
Returns a collection of all hashes availiable in this IDC.
If this is an "offline" mode IDC then this is identical to the cache If this is an "online" mode IDC then this is the items that both exist in the cache and have a postive mask element
Implements EventContainers::IIdentifiableCont< T >.
Definition at line 231 of file IdentifiableContainerMT.h.
|
inlineinherited |
Definition at line 220 of file IdentifiableContainerMT.h.
|
inlineinherited |
Definition at line 251 of file IdentifiableContainerMT.h.
|
inlinefinaloverridevirtualinherited |
Implements EventContainers::IIdentifiableCont< T >.
Definition at line 155 of file IdentifiableContainerMT.h.
|
inlineinherited |
Definition at line 163 of file IdentifiableContainerMT.h.
|
finaloverridevirtualinherited |
return pointer on the found entry or null if out of range using hashed index - fast version, does not call cnv if object not there
return valuetype on the found entry or null if out of range using hashed index - fast version, does not call cnv if object not there
Implements EventContainers::IIdentifiableCont< T >.
Definition at line 292 of file IdentifiableContainerMT.h.
|
inlineprotectedinherited |
Definition at line 28 of file IdentifiableContainerBase.h.
|
pure virtualinherited |
|
inlinefinaloverridevirtualinherited |
return number of collections
Implements EventContainers::IIdentifiableCont< T >.
Definition at line 216 of file IdentifiableContainerMT.h.
|
private |
|
inlineinherited |
Definition at line 213 of file IdentifiableContainerMT.h.
|
inherited |
remove collection from container for id hash, returning it (and ownership) to client
Definition at line 262 of file IdentifiableContainerMT.h.
|
protectedinherited |
|
inlineinherited |
Duplicate of fullSize for backwards compatability.
Definition at line 209 of file IdentifiableContainerMT.h.
|
finaloverridevirtualinherited |
Looks in the cache to see if item already exists if not it returns false, If it does exist it incorporates it into the IDC view but changing the mask.
Implements EventContainers::IIdentifiableCont< T >.
Definition at line 334 of file IdentifiableContainerMT.h.
|
inlineprotectedinherited |
Definition at line 30 of file IdentifiableContainerBase.h.
|
inlineprotectedinherited |
Definition at line 29 of file IdentifiableContainerBase.h.
|
protectedinherited |
Definition at line 26 of file IdentifiableContainerBase.h.
|
protectedinherited |
Definition at line 24 of file IdentifiableContainerBase.h.