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< edm::ObjectWithDict > &v) const |
double | invokeLast (const edm::ObjectWithDict &o, std::vector< edm::ObjectWithDict > &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 96 of file MethodInvoker.h.
typedef tbb::concurrent_unordered_map<edm::TypeID, SingleInvokerPtr, edm::TypeIDHasher> reco::parser::LazyInvoker::InvokerMap |
Definition at line 98 of file MethodInvoker.h.
typedef std::shared_ptr<SingleInvoker> reco::parser::LazyInvoker::SingleInvokerPtr |
Definition at line 97 of file MethodInvoker.h.
|
explicit |
Definition at line 144 of file MethodInvoker.cc.
LazyInvoker::~LazyInvoker | ( | ) |
Definition at line 147 of file MethodInvoker.cc.
edm::ObjectWithDict LazyInvoker::invoke | ( | const edm::ObjectWithDict & | o, |
std::vector< edm::ObjectWithDict > & | 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 162 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< edm::ObjectWithDict > & | v | ||
) | const |
invoke and coerce result to double
Definition at line 174 of file MethodInvoker.cc.
References mps_fire::i, invoker(), EcalTangentSkim_cfg::o, runTheMatrix::ret, and findQualityFiles::v.
|
private |
Definition at line 149 of file MethodInvoker.cc.
References argsBeforeFixups_, newFWLiteAna::found, invokers_, and name_.
Referenced by invoke(), and invokeLast().
|
private |
Definition at line 102 of file MethodInvoker.h.
Referenced by invoker().
|
mutableprivate |
Definition at line 106 of file MethodInvoker.h.
Referenced by invoker().
|
private |
Definition at line 101 of file MethodInvoker.h.
Referenced by invoker().