#include <PndContainerRegister.h>
Definition at line 28 of file PndContainerRegister.h.
◆ ~PndContainerRegister()
virtual PndContainerRegister::~PndContainerRegister |
( |
| ) |
|
|
virtualdefault |
◆ GetBranches()
const std::map<TString, TString>& PndContainerRegister::GetBranches |
( |
| ) |
|
|
inline |
◆ GetCurrentDefaultBranchName() [1/2]
const TString& PndContainerRegister::GetCurrentDefaultBranchName |
( |
const TString & |
t_classname | ) |
const |
|
inline |
◆ GetCurrentDefaultBranchName() [2/2]
template<class T >
const TString& PndContainerRegister::GetCurrentDefaultBranchName |
( |
| ) |
const |
|
inline |
Definition at line 145 of file PndContainerRegister.h.
147 const TString classname = T{}.ClassName();
const TString & GetCurrentDefaultBranchName() const
◆ GetDefaultBranch()
Definition at line 129 of file PndContainerRegister.h.
131 const TString classname = T{}.ClassName();
132 const TString &defaultBranch = fDefaultBranches[classname];
133 LOG(debug) <<
"PndContainerRegister::GetDefaultBranch() Returning default branch " << defaultBranch <<
" for " << classname;
135 auto pos = fInputs.find(defaultBranch);
136 if (pos != fInputs.end()) {
◆ GetInput()
template<class T >
PndContainerI<T>* PndContainerRegister::GetInput |
( |
const TString & |
t_branchname | ) |
|
|
inline |
Definition at line 101 of file PndContainerRegister.h.
103 LOG(debug) <<
"PndContainerRegister::GetInput(" << t_branchname <<
") for " << T{}.ClassName();
104 if (t_branchname ==
"" || fDefaultBranches[T{}.ClassName()] == t_branchname) {
105 LOG(debug) <<
"PndContainerRegister::GetInput(" << t_branchname <<
") from default register";
107 return (GetDefaultBranch<T>());
◆ GetOutput()
Definition at line 71 of file PndContainerRegister.h.
73 LOG(debug) <<
"PndContainerRegister::GetOutput(" << t_branchname <<
") for " << T{}.ClassName();
75 if (t_branchname ==
"" || fDefaultBranches[T{}.ClassName()] == t_branchname) {
76 LOG(debug) <<
"PndContainerRegister::GetOutput(" << t_branchname <<
") from default register";
77 auto *defaultBranch = GetDefaultBranch<T>();
81 LOG(error) <<
"Attempted to cast a InputContainer " << t_branchname <<
") for " << T{}.ClassName() <<
" to PndMutableContainerI! Returning nullptr!";
◆ GetRequests()
◆ Inputs()
◆ IsBranchSet()
Bool_t PndContainerRegister::IsBranchSet |
( |
const TString & |
t_branchname | ) |
const |
|
inline |
Definition at line 57 of file PndContainerRegister.h.
Referenced by PndProcessTask::HandledRequest().
59 auto pos = fInputs.find(t_branchname);
60 if (pos != fInputs.end()) {
61 return (pos->second) !=
nullptr;
63 auto opos = fOutputs.find(t_branchname);
64 if (opos != fOutputs.end()) {
65 return (opos->second) !=
nullptr;
◆ Outputs()
◆ Request()
◆ SetAsDefaultBranchFor()
void PndContainerRegister::SetAsDefaultBranchFor |
( |
const TString & |
t_branchname, |
|
|
const TString & |
t_class |
|
) |
| |
|
inline |
Definition at line 122 of file PndContainerRegister.h.
Referenced by SetInput(), and SetOutput().
124 LOG(info) <<
"PndContainerRegister::SetAsDefaultBranchFor() Setting " << t_branchname <<
" as active branch for " << t_class;
125 fDefaultBranches[t_class] = t_branchname;
◆ SetInput()
template<class T >
void PndContainerRegister::SetInput |
( |
const TString & |
t_branchname, |
|
|
PndContainerI< T > * |
t_ptr |
|
) |
| |
|
inline |
◆ SetOutput()
template<class T >
void PndContainerRegister::SetOutput |
( |
const TString & |
t_branchname, |
|
|
PndContainerI< T > * |
t_ptr |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: