ATLAS Offline Software
|
Use IdentifiableContainer with MmDigitCollection. More...
#include <MmDigitContainer.h>
Public Types | |
typedef MmDigitCollection::size_type | size_type |
typedef IdentifiableContainer< MmDigitCollection > | MyBase |
typedef T | IDENTIFIABLE |
typedef EventContainers::IdentifiableCache< T > | ICACHE |
typedef IdentifiableContainerMT< T > | MyType |
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 | |
MmDigitContainer (unsigned int hash_max) | |
~MmDigitContainer () | |
size_type | digit_size () const |
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 () |
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 |
Use IdentifiableContainer with MmDigitCollection.
Definition at line 48 of file MmDigitContainer.h.
|
inherited |
Definition at line 75 of file IdentifiableContainerMT.h.
|
inherited |
Definition at line 74 of file IdentifiableContainerMT.h.
|
inherited |
Definition at line 71 of file IdentifiableContainerMT.h.
|
inherited |
Definition at line 18 of file IdentifiableContainerBase.h.
|
inherited |
Definition at line 67 of file IdentifiableContainerMT.h.
|
inherited |
Definition at line 66 of file IdentifiableContainerMT.h.
|
protectedinherited |
Definition at line 25 of file IdentifiableContainerBase.h.
Definition at line 57 of file MmDigitContainer.h.
|
inherited |
Definition at line 68 of file IdentifiableContainerMT.h.
|
inherited |
Definition at line 73 of file IdentifiableContainerMT.h.
|
inherited |
Definition at line 70 of file IdentifiableContainerMT.h.
Definition at line 56 of file MmDigitContainer.h.
|
inherited |
Definition at line 72 of file IdentifiableContainerMT.h.
MmDigitContainer::MmDigitContainer | ( | unsigned int | hash_max | ) |
Definition at line 27 of file MmDigitContainer.cxx.
|
default |
|
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 297 of file IdentifiableContainerMT.h.
|
inherited |
Like the other add methods but optimized for changing from the inprogress state.
Definition at line 372 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 350 of file IdentifiableContainerMT.h.
|
inherited |
identical to previous excepts allows counting of deletions
Definition at line 379 of file IdentifiableContainerMT.h.
|
finaloverridevirtualinherited |
|
inlineinherited |
return const_iterator for first entry
Definition at line 233 of file IdentifiableContainerMT.h.
Definition at line 43 of file MmDigitContainer.cxx.
|
finaloverridevirtualinherited |
reset m_hashids and call IdentifiableCache's cleanup
Implements EventContainers::IIdentifiableCont< T >.
Definition at line 309 of file IdentifiableContainerMT.h.
|
protectedinherited |
Definition at line 38 of file IdentifiableContainerBase.cxx.
MmDigitContainer::size_type MmDigitContainer::digit_size | ( | ) | const |
Definition at line 54 of file MmDigitContainer.cxx.
|
inlineinherited |
return true if container is empty
Definition at line 244 of file IdentifiableContainerMT.h.
|
inlineinherited |
return const_iterator for end of container
Definition at line 239 of file IdentifiableContainerMT.h.
|
inherited |
Definition at line 323 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 316 of file IdentifiableContainerMT.h.
|
inlinefinaloverridevirtualinherited |
return full size of container
Implements EventContainers::IIdentifiableCont< T >.
Definition at line 201 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 228 of file IdentifiableContainerMT.h.
|
inlineinherited |
Definition at line 217 of file IdentifiableContainerMT.h.
|
inlineinherited |
Definition at line 248 of file IdentifiableContainerMT.h.
|
inlinefinaloverridevirtualinherited |
Implements EventContainers::IIdentifiableCont< T >.
Definition at line 152 of file IdentifiableContainerMT.h.
|
inlineinherited |
Definition at line 160 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 289 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 213 of file IdentifiableContainerMT.h.
|
inlineinherited |
Definition at line 210 of file IdentifiableContainerMT.h.
|
inherited |
remove collection from container for id hash, returning it (and ownership) to client
Definition at line 259 of file IdentifiableContainerMT.h.
|
protectedinherited |
|
inlineinherited |
Duplicate of fullSize for backwards compatability.
Definition at line 206 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 331 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.