#include <PndContainerRegister.h>
Definition at line 16 of file PndContainerRegister.h.
◆ 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 131 of file PndContainerRegister.h.
133 const TString classname = T{}.ClassName();
const TString & GetCurrentDefaultBranchName() const
◆ GetDefaultBranch()
Definition at line 115 of file PndContainerRegister.h.
117 const TString classname = T{}.ClassName();
118 const TString &defaultBranch = fDefaultBranches[classname];
119 LOG(debug) <<
"PndContainerRegister::GetDefaultBranch() Returning default branch " << defaultBranch <<
" for " << classname;
121 auto pos = fInputs.find(defaultBranch);
122 if (pos != fInputs.end()) {
◆ GetInput()
template<class T >
PndContainerI<T>* PndContainerRegister::GetInput |
( |
const TString & |
t_branchname | ) |
|
|
inline |
Definition at line 87 of file PndContainerRegister.h.
89 LOG(debug) <<
"PndContainerRegister::GetInput(" << t_branchname <<
") for " << T{}.ClassName();
90 if (t_branchname ==
"" || fDefaultBranches[T{}.ClassName()] == t_branchname) {
91 LOG(debug) <<
"PndContainerRegister::GetInput(" << t_branchname <<
") from default register";
◆ GetOutput()
Definition at line 59 of file PndContainerRegister.h.
61 LOG(debug) <<
"PndContainerRegister::GetOutput(" << t_branchname <<
") for " << T{}.ClassName();
63 if (t_branchname ==
"" || fDefaultBranches[T{}.ClassName()] == t_branchname) {
64 LOG(debug) <<
"PndContainerRegister::GetOutput(" << t_branchname <<
") from default register";
65 auto *defaultBranch = GetDefaultBranch<T>();
69 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 45 of file PndContainerRegister.h.
Referenced by PndProcessTask::HandledRequest().
47 auto pos = fInputs.find(t_branchname);
48 if (pos != fInputs.end()) {
49 return (pos->second) !=
nullptr;
51 auto opos = fOutputs.find(t_branchname);
52 if (opos != fOutputs.end()) {
53 return (opos->second) !=
nullptr;
◆ Outputs()
◆ Request()
◆ SetAsDefaultBranchFor()
void PndContainerRegister::SetAsDefaultBranchFor |
( |
const TString & |
t_branchname, |
|
|
const TString & |
t_class |
|
) |
| |
|
inline |
Definition at line 108 of file PndContainerRegister.h.
Referenced by SetInput(), and SetOutput().
110 LOG(info) <<
"PndContainerRegister::SetAsDefaultBranchFor() Setting " << t_branchname <<
" as active branch for " << t_class;
111 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: