|  | Belle II Software
    light-2205-abys
    | 
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)?  More... | |
| 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.
| 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.