Belle II Software light-2406-ragdoll
|
Collect information about the dependencies between modules. More...
#include <DependencyMap.h>
Classes | |
struct | ModuleInfo |
Stores information on inputs/outputs of a module, as obtained by requireInput()/optionalInput()/registerEntry();. More... | |
Public Types | |
enum | EEntryType { c_Input , c_OptionalInput , c_Output , c_NEntryTypes } |
Possible types of entries/relations for a module. More... | |
Public Member Functions | |
bool | isUsedAs (const std::string &branchName, EEntryType type) const |
Is the object/array/relation with given name used as specified input/output type (in any module)? | |
void | setModule (const Module &mod) |
Set the current module (for getCurrentModuleInfo()) | |
ModuleInfo & | getCurrentModuleInfo () |
Get info for current module. | |
const std::map< std::string, ModuleInfo > & | getModuleInfoMap () const |
return information on inputs/outputs of each module, as obtained by requireInput()/optionalInput()/registerEntry(); | |
void | clear () |
Reset all collected data. | |
Static Public Member Functions | |
static std::string | getModuleID (const Module &mod) |
Return unique ID for given module. | |
Private Attributes | |
std::map< std::string, ModuleInfo > | m_moduleInfo |
Stores information on inputs/outputs of each module, as obtained by requireInput()/optionalInput()/registerEntry();. | |
std::string | m_currentModule |
Stores the current module, used to fill m_moduleInfo. | |
Collect information about the dependencies between modules.
Filled inside DataStore during register/require/optional, and used by the –visualize-dataflow and –module-io arguments to basf2 to create graphs of data dependencies.
Definition at line 29 of file DependencyMap.h.
enum EEntryType |
Possible types of entries/relations for a module.
Enumerator | |
---|---|
c_Input | required input. |
c_OptionalInput | optional input. |
c_Output | registered output. |
c_NEntryTypes | size of this enum. |
Definition at line 32 of file DependencyMap.h.
|
inline |
Reset all collected data.
Definition at line 69 of file DependencyMap.h.
|
inline |
|
static |
Return unique ID for given module.
Definition at line 16 of file DependencyMap.cc.
|
inline |
return information on inputs/outputs of each module, as obtained by requireInput()/optionalInput()/registerEntry();
Definition at line 66 of file DependencyMap.h.
bool isUsedAs | ( | const std::string & | branchName, |
EEntryType | type | ||
) | const |
Is the object/array/relation with given name used as specified input/output type (in any module)?
E.g. is('EventMetaData', c_Output) asks if EventMetaData was registered, is('EventMetaData', c_Input) asks if any module has it as required input.
Definition at line 29 of file DependencyMap.cc.
|
inline |
Set the current module (for getCurrentModuleInfo())
Definition at line 60 of file DependencyMap.h.
|
private |
Stores the current module, used to fill m_moduleInfo.
Definition at line 76 of file DependencyMap.h.
|
private |
Stores information on inputs/outputs of each module, as obtained by requireInput()/optionalInput()/registerEntry();.
Definition at line 73 of file DependencyMap.h.