ODIN
Public Member Functions | List of all members
RecoBlackBoard Class Reference

#include <blackboard.h>

Public Member Functions

 RecoBlackBoard ()
 
void announce (const STD_string &label)
 
void post (const STD_string &label, const RecoData &data)
 
bool announced (const STD_string &label) const
 
bool inquire (const STD_string &label, RecoData &data, bool blocking)
 
void release_waiting_threads ()
 

Detailed Description

Manages data transfer between functors

Definition at line 35 of file blackboard.h.

Constructor & Destructor Documentation

◆ RecoBlackBoard()

RecoBlackBoard::RecoBlackBoard ( )
inline

Constructs empty blackboard

Definition at line 42 of file blackboard.h.

Member Function Documentation

◆ announce()

void RecoBlackBoard::announce ( const STD_string &  label)
inline

Announces that data with identifier 'label' will become available during pipeline execution.

Definition at line 49 of file blackboard.h.

◆ announced()

bool RecoBlackBoard::announced ( const STD_string &  label) const
inline

Returns true only if data with identifier 'label' will become available during pipeline execution.

Definition at line 59 of file blackboard.h.

◆ inquire()

bool RecoBlackBoard::inquire ( const STD_string &  label,
RecoData data,
bool  blocking 
)

Returns 'data' with identifier 'label' for k-space coordinate set in 'data'. If 'blocking' is 'true', the function will return only if data becomes available. Returns 'true' if data is available, otherwise returns 'false' if data not yet available.

◆ post()

void RecoBlackBoard::post ( const STD_string &  label,
const RecoData data 
)

Posts 'data' with identifier 'label', it will be indexed according to the k-space coordinate in 'data'.

◆ release_waiting_threads()

void RecoBlackBoard::release_waiting_threads ( )

Wake up all stopped threads, even if no data is available, e.g. in case of an error


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