ATLAS Offline Software
|
#include <TileRawDataContainer.h>
Public Types | |
typedef TCOLLECTION::TElement | TElement |
typedef TileRawDataContainer< TCOLLECTION >::const_iterator | TContainer_const_iterator |
typedef TCOLLECTION::TCollection_const_iterator | TCollection_const_iterator |
typedef IdentifiableContainer< TCOLLECTION > | 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 | |
TileRawDataContainer (bool createColl=false, TYPE type=TileFragHash::Digitizer, UNIT unit=TileRawChannelUnit::ADCcounts, SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS) | |
TileRawDataContainer (bool createColl, SG::OwnershipPolicy ownPolicy) | |
virtual | ~TileRawDataContainer () |
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 32 of file TileRawDataContainer.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.
typedef IdentifiableContainer<TCOLLECTION> TileRawDataContainer< TCOLLECTION >::MyBase |
Definition at line 41 of file TileRawDataContainer.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.
|
inherited |
Definition at line 69 of file IdentifiableContainerMT.h.
typedef TCOLLECTION::TCollection_const_iterator TileRawDataContainer< TCOLLECTION >::TCollection_const_iterator |
Definition at line 39 of file TileRawDataContainer.h.
typedef TileRawDataContainer<TCOLLECTION>::const_iterator TileRawDataContainer< TCOLLECTION >::TContainer_const_iterator |
Definition at line 38 of file TileRawDataContainer.h.
typedef TCOLLECTION::TElement TileRawDataContainer< TCOLLECTION >::TElement |
Definition at line 37 of file TileRawDataContainer.h.
typedef TileFragHash::TYPE TileRawDataContainer< TCOLLECTION >::TYPE |
Definition at line 42 of file TileRawDataContainer.h.
typedef TileRawChannelUnit::UNIT TileRawDataContainer< TCOLLECTION >::UNIT |
Definition at line 43 of file TileRawDataContainer.h.
|
inherited |
Definition at line 72 of file IdentifiableContainerMT.h.
TileRawDataContainer< TCOLLECTION >::TileRawDataContainer | ( | bool | createColl = false , |
TYPE | type = TileFragHash::Digitizer , |
||
UNIT | unit = TileRawChannelUnit::ADCcounts , |
||
SG::OwnershipPolicy | ownPolicy = SG::OWN_ELEMENTS |
||
) |
TileRawDataContainer< TCOLLECTION >::TileRawDataContainer | ( | bool | createColl, |
SG::OwnershipPolicy | ownPolicy | ||
) |
|
inlinevirtual |
Definition at line 53 of file TileRawDataContainer.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 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.
|
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.
|
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.
|
inline |
Definition at line 64 of file TileRawDataContainer.h.
|
inline |
Definition at line 59 of file TileRawDataContainer.h.
|
inline |
Definition at line 62 of file TileRawDataContainer.h.
|
inline |
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 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.
|
inline |
Definition at line 66 of file TileRawDataContainer.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.
void TileRawDataContainer< TCOLLECTION >::initialize | ( | bool | createColl, |
TYPE | type, | ||
SG::OwnershipPolicy | ownPolicy = SG::OWN_ELEMENTS |
||
) |
|
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.
|
virtual |
|
inlineinherited |
Definition at line 210 of file IdentifiableContainerMT.h.
|
virtual |
|
inherited |
remove collection from container for id hash, returning it (and ownership) to client
Definition at line 259 of file IdentifiableContainerMT.h.
|
protectedinherited |
|
inline |
Definition at line 65 of file TileRawDataContainer.h.
|
inline |
Definition at line 63 of file TileRawDataContainer.h.
|
inline |
Definition at line 61 of file TileRawDataContainer.h.
|
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.
|
inlinevirtual |
Definition at line 71 of file TileRawDataContainer.h.
|
private |
Definition at line 78 of file TileRawDataContainer.h.
|
private |
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.
|
private |
Definition at line 77 of file TileRawDataContainer.h.
|
private |
Definition at line 76 of file TileRawDataContainer.h.