Keeps different SingleInvokers for each dynamic type of the objects passed to invoke() More...
#include <MethodInvoker.h>
Public Types | |
typedef tbb::concurrent_unordered_map< edm::TypeID, SingleInvokerPtr, edm::TypeIDHasher > | InvokerMap |
typedef std::shared_ptr< SingleInvoker > | SingleInvokerPtr |
Public Member Functions | |
edm::ObjectWithDict | invoke (const edm::ObjectWithDict &o, std::vector< StorageManager > &v) const |
double | invokeLast (const edm::ObjectWithDict &o, std::vector< StorageManager > &v) const |
invoke and coerce result to double More... | |
LazyInvoker (const std::string &name, const std::vector< AnyMethodArgument > &args) | |
~LazyInvoker () | |
Private Member Functions | |
const SingleInvoker & | invoker (const edm::TypeWithDict &) const |
Private Attributes | |
std::vector< AnyMethodArgument > | argsBeforeFixups_ |
InvokerMap | invokers_ |
std::string | name_ |
Keeps different SingleInvokers for each dynamic type of the objects passed to invoke()
Definition at line 126 of file MethodInvoker.h.
typedef tbb::concurrent_unordered_map<edm::TypeID, SingleInvokerPtr, edm::TypeIDHasher> reco::parser::LazyInvoker::InvokerMap |
Definition at line 128 of file MethodInvoker.h.
typedef std::shared_ptr<SingleInvoker> reco::parser::LazyInvoker::SingleInvokerPtr |
Definition at line 127 of file MethodInvoker.h.
|
explicit |
Definition at line 145 of file MethodInvoker.cc.
LazyInvoker::~LazyInvoker | ( | ) |
Definition at line 148 of file MethodInvoker.cc.
edm::ObjectWithDict LazyInvoker::invoke | ( | const edm::ObjectWithDict & | o, |
std::vector< StorageManager > & | v | ||
) | const |
invoke method, returns object that points to result (after stripping '*' and '&') the object is still owned by the LazyInvoker the actual edm::ObjectWithDict where the result is stored will be pushed in vector so that, if needed, its destructor can be called
Definition at line 163 of file MethodInvoker.cc.
References reco::parser::SingleInvoker::invoke(), invoker(), EcalTangentSkim_cfg::o, runTheMatrix::ret, and findQualityFiles::v.
double LazyInvoker::invokeLast | ( | const edm::ObjectWithDict & | o, |
std::vector< StorageManager > & | v | ||
) | const |
invoke and coerce result to double
Definition at line 175 of file MethodInvoker.cc.
References mps_fire::i, invoker(), EcalTangentSkim_cfg::o, runTheMatrix::ret, and findQualityFiles::v.
|
private |
Definition at line 150 of file MethodInvoker.cc.
References argsBeforeFixups_, newFWLiteAna::found, invokers_, and name_.
Referenced by invoke(), and invokeLast().
|
private |
Definition at line 132 of file MethodInvoker.h.
Referenced by invoker().
|
mutableprivate |
Definition at line 136 of file MethodInvoker.h.
Referenced by invoker().
|
private |
Definition at line 131 of file MethodInvoker.h.
Referenced by invoker().