ATLAS Offline Software
|
#include <TileDigitsContainer.h>
Public Types | |
typedef TCOLLECTION::TElement | TElement |
typedef TileRawDataContainer< TileDigitsCollection >::const_iterator | TContainer_const_iterator |
typedef TCOLLECTION::TCollection_const_iterator | TCollection_const_iterator |
typedef IdentifiableContainer< TileDigitsCollection > | MyBase |
typedef TileFragHash::TYPE | TYPE |
typedef TileRawChannelUnit::UNIT | UNIT |
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 | |
TileDigitsContainer (bool createColl=false, SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS) | |
TileDigitsContainer (bool createColl, TYPE type, UNIT unit=TileRawChannelUnit::ADCcounts, SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS) | |
~TileDigitsContainer () | |
void | initialize (bool createColl, TYPE type, SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS) |
TYPE | get_hashType () const |
UNIT | get_unit () const |
void | set_unit (UNIT unit) |
TYPE | get_type () const |
void | set_type (TYPE type) |
uint32_t | get_bsflags () const |
void | set_bsflags (uint32_t bsflags) |
const TileFragHash & | hashFunc () const |
virtual void | print () const |
virtual | operator std::string () const |
virtual std::string | whoami (void) const |
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 |
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 Attributes | |
UNIT | m_unit |
TYPE | m_type |
uint32_t | m_bsflags |
TileFragHash | m_hashFunc |
Definition at line 11 of file TileDigitsContainer.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 41 of file TileRawDataContainer.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 39 of file TileRawDataContainer.h.
|
inherited |
Definition at line 38 of file TileRawDataContainer.h.
|
inherited |
Definition at line 37 of file TileRawDataContainer.h.
|
inherited |
Definition at line 42 of file TileRawDataContainer.h.
|
inherited |
Definition at line 43 of file TileRawDataContainer.h.
|
inherited |
Definition at line 75 of file IdentifiableContainerMT.h.
|
inline |
Definition at line 16 of file TileDigitsContainer.h.
|
inline |
Definition at line 20 of file TileDigitsContainer.h.
|
inline |
Definition at line 27 of file TileDigitsContainer.h.
|
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.
|
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.
|
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.
|
inlineinherited |
Definition at line 64 of file TileRawDataContainer.h.
|
inlineinherited |
Definition at line 59 of file TileRawDataContainer.h.
|
inlineinherited |
Definition at line 62 of file TileRawDataContainer.h.
|
inlineinherited |
Definition at line 60 of file TileRawDataContainer.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 66 of file TileRawDataContainer.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.
|
inherited |
|
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.
|
virtualinherited |
|
inlineinherited |
Definition at line 213 of file IdentifiableContainerMT.h.
|
virtualinherited |
|
inherited |
remove collection from container for id hash, returning it (and ownership) to client
Definition at line 262 of file IdentifiableContainerMT.h.
|
protectedinherited |
|
inlineinherited |
Definition at line 65 of file TileRawDataContainer.h.
|
inlineinherited |
Definition at line 63 of file TileRawDataContainer.h.
|
inlineinherited |
Definition at line 61 of file TileRawDataContainer.h.
|
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.
|
inlinevirtualinherited |
Definition at line 71 of file TileRawDataContainer.h.
|
privateinherited |
Definition at line 78 of file TileRawDataContainer.h.
|
privateinherited |
Definition at line 80 of file TileRawDataContainer.h.
|
protectedinherited |
Definition at line 26 of file IdentifiableContainerBase.h.
|
protectedinherited |
Definition at line 24 of file IdentifiableContainerBase.h.
|
privateinherited |
Definition at line 77 of file TileRawDataContainer.h.
|
privateinherited |
Definition at line 76 of file TileRawDataContainer.h.