![]() |
The Gaudi Framework
v27r0
|
Public Types | |
enum | AccessType { READ, WRITE, UPDATE, READ, WRITE, UPDATE } |
The type of the access. More... | |
enum | AccessType { READ, WRITE, UPDATE, READ, WRITE, UPDATE } |
The type of the access. More... | |
Public Member Functions | |
MinimalDataObjectHandle () | |
MinimalDataObjectHandle (DataObjectDescriptor &descriptor) | |
Constructor initialises the members and registers products in SchedSvc the MinimalDataObjectHandle takes over the ownership of the descriptor. More... | |
virtual | ~MinimalDataObjectHandle () |
virtual StatusCode | initialize () |
Initialize. More... | |
virtual StatusCode | finalize () |
Finalize. More... | |
virtual StatusCode | reinitialize () |
Reinitialize -> may be overwritten in derived class. More... | |
bool | isOptional () const |
Check if the data object declared is optional for the algorithm. More... | |
void | setOptional (bool optional=true) |
size_t | dataProductIndex () const |
Return the product index. More... | |
const std::string & | dataProductName () const |
Return the product name. More... | |
const std::vector< std::string > & | alternativeDataProductNames () const |
StatusCode | setDataProductName (const std::string &address) |
Update address of data product if possible -> not if was written. More... | |
StatusCode | setAlternativeDataProductNames (const std::vector< std::string > &alternativeAddresses) |
StatusCode | setDataProductNames (const std::vector< std::string > &addresses) |
AccessType | accessType () const |
Access type. More... | |
bool | wasRead () const |
Check if operation was performed. More... | |
bool | wasWritten () const |
Check if operation was performed. More... | |
bool | isValid () const |
bool | initialized () const |
void | lock () |
void | unlock () |
MinimalDataObjectHandle () | |
MinimalDataObjectHandle (DataObjectDescriptor &descriptor) | |
Constructor initialises the members and registers products in SchedSvc the MinimalDataObjectHandle takes over the ownership of the descriptor. More... | |
virtual | ~MinimalDataObjectHandle () |
virtual StatusCode | initialize () |
Initialize. More... | |
virtual StatusCode | finalize () |
Finalize. More... | |
virtual StatusCode | reinitialize () |
Reinitialize -> may be overwritten in derived class. More... | |
bool | isOptional () const |
Check if the data object declared is optional for the algorithm. More... | |
void | setOptional (bool optional=true) |
size_t | dataProductIndex () const |
Return the product index. More... | |
const std::string & | dataProductName () const |
Return the product name. More... | |
const std::vector< std::string > & | alternativeDataProductNames () const |
StatusCode | setDataProductName (const std::string &address) |
Update address of data product if possible -> not if was written. More... | |
StatusCode | setAlternativeDataProductNames (const std::vector< std::string > &alternativeAddresses) |
StatusCode | setDataProductNames (const std::vector< std::string > &addresses) |
AccessType | accessType () const |
Access type. More... | |
bool | wasRead () const |
Check if operation was performed. More... | |
bool | wasWritten () const |
Check if operation was performed. More... | |
bool | isValid () const |
bool | initialized () const |
void | lock () |
void | unlock () |
Protected Member Functions | |
void | setRead (bool wasRead=true) |
void | setWritten (bool wasWritten=true) |
DataObjectDescriptor * | descriptor () |
void | setRead (bool wasRead=true) |
void | setWritten (bool wasWritten=true) |
DataObjectDescriptor * | descriptor () |
Protected Attributes | |
DataObjectDescriptor * | m_descriptor |
Private Member Functions | |
size_t | updateDataProductIndex () |
MinimalDataObjectHandle (const MinimalDataObjectHandle &) | |
MinimalDataObjectHandle & | operator= (const MinimalDataObjectHandle &) |
size_t | updateDataProductIndex () |
MinimalDataObjectHandle (const MinimalDataObjectHandle &) | |
MinimalDataObjectHandle & | operator= (const MinimalDataObjectHandle &) |
Private Attributes | |
unsigned int | m_dataProductIndex |
bool | m_wasRead |
bool | m_wasWritten |
bool | m_initialized |
Static Private Attributes | |
static std::unordered_map< std::string, size_t > | m_dataProductIndexMap |
static std::map< size_t, std::map< size_t, tbb::spin_mutex > > | m_locks |
static const uint | CLEANUP_THRESHOLD = 20 |
Friends | |
class | Algorithm |
class | AlgTool |
class | DataObjectDescriptorCollection |
Definition at line 21 of file MinimalDataObjectHandle.h.
The type of the access.
Definition at line 26 of file MinimalDataObjectHandle.h.
The type of the access.
Definition at line 26 of file MinimalDataObjectHandle.h.
MinimalDataObjectHandle::MinimalDataObjectHandle | ( | ) |
Definition at line 7 of file MinimalDataObjectHandle.cpp.
MinimalDataObjectHandle::MinimalDataObjectHandle | ( | DataObjectDescriptor & | descriptor | ) |
Constructor initialises the members and registers products in SchedSvc the MinimalDataObjectHandle takes over the ownership of the descriptor.
Definition at line 17 of file MinimalDataObjectHandle.cpp.
|
virtual |
Definition at line 25 of file MinimalDataObjectHandle.cpp.
|
private |
MinimalDataObjectHandle::MinimalDataObjectHandle | ( | ) |
MinimalDataObjectHandle::MinimalDataObjectHandle | ( | DataObjectDescriptor & | descriptor | ) |
Constructor initialises the members and registers products in SchedSvc the MinimalDataObjectHandle takes over the ownership of the descriptor.
|
virtual |
|
private |
auto MinimalDataObjectHandle::accessType | ( | ) | const |
Access type.
Definition at line 117 of file MinimalDataObjectHandle.cpp.
AccessType MinimalDataObjectHandle::accessType | ( | ) | const |
Access type.
const std::vector< std::string > & MinimalDataObjectHandle::alternativeDataProductNames | ( | ) | const |
Definition at line 75 of file MinimalDataObjectHandle.cpp.
const std::vector<std::string>& MinimalDataObjectHandle::alternativeDataProductNames | ( | ) | const |
size_t MinimalDataObjectHandle::dataProductIndex | ( | ) | const |
Return the product index.
Definition at line 65 of file MinimalDataObjectHandle.cpp.
size_t MinimalDataObjectHandle::dataProductIndex | ( | ) | const |
Return the product index.
const std::string & MinimalDataObjectHandle::dataProductName | ( | ) | const |
Return the product name.
Definition at line 71 of file MinimalDataObjectHandle.cpp.
const std::string& MinimalDataObjectHandle::dataProductName | ( | ) | const |
Return the product name.
|
protected |
Definition at line 149 of file MinimalDataObjectHandle.cpp.
|
protected |
|
virtual |
Finalize.
Reimplemented in DataObjectHandle< T >, DataObjectHandle< T >, DataObjectHandle< DataObject >, and DataObjectHandle< DataObject >.
|
virtual |
Finalize.
Reimplemented in DataObjectHandle< T >, DataObjectHandle< T >, DataObjectHandle< DataObject >, and DataObjectHandle< DataObject >.
Definition at line 49 of file MinimalDataObjectHandle.cpp.
|
virtual |
Initialize.
Reimplemented in DataObjectHandle< T >, DataObjectHandle< T >, DataObjectHandle< DataObject >, and DataObjectHandle< DataObject >.
Definition at line 31 of file MinimalDataObjectHandle.cpp.
|
virtual |
Initialize.
Reimplemented in DataObjectHandle< T >, DataObjectHandle< T >, DataObjectHandle< DataObject >, and DataObjectHandle< DataObject >.
|
inline |
Definition at line 86 of file MinimalDataObjectHandle.h.
|
inline |
Definition at line 86 of file MinimalDataObjectHandle.h.
bool MinimalDataObjectHandle::isOptional | ( | ) | const |
Check if the data object declared is optional for the algorithm.
Definition at line 55 of file MinimalDataObjectHandle.cpp.
bool MinimalDataObjectHandle::isOptional | ( | ) | const |
Check if the data object declared is optional for the algorithm.
bool MinimalDataObjectHandle::isValid | ( | ) | const |
bool MinimalDataObjectHandle::isValid | ( | ) | const |
Definition at line 129 of file MinimalDataObjectHandle.cpp.
void MinimalDataObjectHandle::lock | ( | ) |
Definition at line 178 of file MinimalDataObjectHandle.cpp.
void MinimalDataObjectHandle::lock | ( | ) |
|
private |
|
private |
|
virtual |
Reinitialize -> may be overwritten in derived class.
Reimplemented in DataObjectHandle< T >, DataObjectHandle< T >, DataObjectHandle< DataObject >, and DataObjectHandle< DataObject >.
Definition at line 41 of file MinimalDataObjectHandle.cpp.
|
virtual |
Reinitialize -> may be overwritten in derived class.
Reimplemented in DataObjectHandle< T >, DataObjectHandle< T >, DataObjectHandle< DataObject >, and DataObjectHandle< DataObject >.
StatusCode MinimalDataObjectHandle::setAlternativeDataProductNames | ( | const std::vector< std::string > & | alternativeAddresses | ) |
StatusCode MinimalDataObjectHandle::setAlternativeDataProductNames | ( | const std::vector< std::string > & | alternativeAddresses | ) |
Definition at line 91 of file MinimalDataObjectHandle.cpp.
StatusCode MinimalDataObjectHandle::setDataProductName | ( | const std::string & | address | ) |
Update address of data product if possible -> not if was written.
StatusCode MinimalDataObjectHandle::setDataProductName | ( | const std::string & | address | ) |
Update address of data product if possible -> not if was written.
Definition at line 79 of file MinimalDataObjectHandle.cpp.
StatusCode MinimalDataObjectHandle::setDataProductNames | ( | const std::vector< std::string > & | addresses | ) |
Definition at line 103 of file MinimalDataObjectHandle.cpp.
StatusCode MinimalDataObjectHandle::setDataProductNames | ( | const std::vector< std::string > & | addresses | ) |
void MinimalDataObjectHandle::setOptional | ( | bool | optional = true | ) |
Definition at line 59 of file MinimalDataObjectHandle.cpp.
void MinimalDataObjectHandle::setOptional | ( | bool | optional = true | ) |
|
protected |
Definition at line 141 of file MinimalDataObjectHandle.cpp.
|
protected |
|
protected |
Definition at line 145 of file MinimalDataObjectHandle.cpp.
|
protected |
void MinimalDataObjectHandle::unlock | ( | ) |
Definition at line 182 of file MinimalDataObjectHandle.cpp.
void MinimalDataObjectHandle::unlock | ( | ) |
|
private |
Definition at line 156 of file MinimalDataObjectHandle.cpp.
|
private |
bool MinimalDataObjectHandle::wasRead | ( | ) | const |
bool MinimalDataObjectHandle::wasRead | ( | ) | const |
Check if operation was performed.
bool MinimalDataObjectHandle::wasWritten | ( | ) | const |
Check if operation was performed.
bool MinimalDataObjectHandle::wasWritten | ( | ) | const |
|
friend |
Definition at line 35 of file MinimalDataObjectHandle.h.
|
friend |
Definition at line 36 of file MinimalDataObjectHandle.h.
Definition at line 37 of file MinimalDataObjectHandle.h.
|
staticprivate |
Definition at line 118 of file MinimalDataObjectHandle.h.
|
private |
Definition at line 103 of file MinimalDataObjectHandle.h.
|
staticprivate |
Definition at line 111 of file MinimalDataObjectHandle.h.
|
protected |
Definition at line 92 of file MinimalDataObjectHandle.h.
|
private |
Definition at line 106 of file MinimalDataObjectHandle.h.
|
staticprivate |
Definition at line 117 of file MinimalDataObjectHandle.h.
|
private |
Definition at line 104 of file MinimalDataObjectHandle.h.
|
private |
Definition at line 105 of file MinimalDataObjectHandle.h.