The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
IHiveWhiteBoard Class Referenceabstract

#include <GaudiKernel/IHiveWhiteBoard.h>

Inheritance diagram for IHiveWhiteBoard:
Collaboration diagram for IHiveWhiteBoard:

Public Member Functions

 DeclareInterfaceID (IHiveWhiteBoard, 2, 0)
 InterfaceID.
 
virtual StatusCode selectStore (size_t partitionIndex)=0
 Activate an given 'slot' for all subsequent calls within the same thread id.
 
virtual StatusCode clearStore (size_t partitionIndex)=0
 Clear an given 'slot'.
 
virtual StatusCode setNumberOfStores (size_t slots)=0
 Set the number of 'slots'.
 
virtual size_t getNumberOfStores () const =0
 Get the number of 'slots'.
 
virtual bool exists (const DataObjID &)=0
 Check if a data object exists in store.
 
virtual size_t allocateStore (int evtnumber)=0
 Allocate a store partition for new event.
 
virtual StatusCode freeStore (size_t partitionIndex)=0
 Free a store partition.
 
virtual size_t getPartitionNumber (int eventnumber) const =0
 Get the partition number corresponding to a given event.
 
virtual size_t freeSlots ()=0
 Get free slots number.
 

Additional Inherited Members

- Public Types inherited from extend_interfaces< IInterface >
using ext_iids
 take union of the ext_iids of all Interfaces...
 

Detailed Description

Author
Pere Mato
Danilo Piparo
Version
1.0

Definition at line 23 of file IHiveWhiteBoard.h.

Member Function Documentation

◆ allocateStore()

virtual size_t IHiveWhiteBoard::allocateStore ( int evtnumber)
pure virtual

Allocate a store partition for new event.

Parameters
evtnumber[IN] Event number
Returns
Partition number (npos to indicate an error).

◆ clearStore()

virtual StatusCode IHiveWhiteBoard::clearStore ( size_t partitionIndex)
pure virtual

Clear an given 'slot'.

Parameters
partition[IN] Partition number (event slot) *
Returns
Status code indicating failure or success.

◆ DeclareInterfaceID()

IHiveWhiteBoard::DeclareInterfaceID ( IHiveWhiteBoard ,
2 ,
0  )

◆ exists()

virtual bool IHiveWhiteBoard::exists ( const DataObjID & )
pure virtual

Check if a data object exists in store.

TODO: remove the method ASA a cross-experiment event data store interface emerges

Returns
boolean

◆ freeSlots()

virtual size_t IHiveWhiteBoard::freeSlots ( )
pure virtual

Get free slots number.

◆ freeStore()

virtual StatusCode IHiveWhiteBoard::freeStore ( size_t partitionIndex)
pure virtual

Free a store partition.

Parameters
partition[IN] Partition number
Returns
Status code indicating failure or success.

◆ getNumberOfStores()

virtual size_t IHiveWhiteBoard::getNumberOfStores ( ) const
pure virtual

Get the number of 'slots'.

Returns
Number of event stores allocated in the whiteboard

◆ getPartitionNumber()

virtual size_t IHiveWhiteBoard::getPartitionNumber ( int eventnumber) const
pure virtual

Get the partition number corresponding to a given event.

Parameters
evtnumber[IN] Event number
Returns
Partition number (npos to indicate an error).

◆ selectStore()

virtual StatusCode IHiveWhiteBoard::selectStore ( size_t partitionIndex)
pure virtual

Activate an given 'slot' for all subsequent calls within the same thread id.

Parameters
partition[IN] Partition number (event slot) *
Returns
Status code indicating failure or success.

◆ setNumberOfStores()

virtual StatusCode IHiveWhiteBoard::setNumberOfStores ( size_t slots)
pure virtual

Set the number of 'slots'.

Parameters
partition[IN] Partition number (event slot) *
Returns
Status code indicating failure or success.

The documentation for this class was generated from the following file: