Keeps different SingleInvokers for each dynamic type of the objects passed to invoke() More...
#include <MethodInvoker.h>
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 Types | |
typedef boost::shared_ptr < SingleInvoker > | SingleInvokerPtr |
Private Member Functions | |
const SingleInvoker & | invoker (const edm::TypeWithDict &t) const |
Private Attributes | |
std::vector< AnyMethodArgument > | argsBeforeFixups_ |
std::map< edm::TypeID, SingleInvokerPtr > | invokers_ |
std::string | name_ |
Keeps different SingleInvokers for each dynamic type of the objects passed to invoke()
Definition at line 73 of file MethodInvoker.h.
|
private |
Definition at line 87 of file MethodInvoker.h.
|
explicit |
Definition at line 120 of file MethodInvoker.cc.
LazyInvoker::~LazyInvoker | ( | ) |
Definition at line 126 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 143 of file MethodInvoker.cc.
References reco::parser::SingleInvoker::invoke(), invoker(), edm::TypeWithDict::isClass(), and run_regression::ret.
double LazyInvoker::invokeLast | ( | const edm::ObjectWithDict & | o, |
std::vector< edm::ObjectWithDict > & | v | ||
) | const |
invoke and coerce result to double
Definition at line 155 of file MethodInvoker.cc.
References i, reco::parser::SingleInvoker::invoke(), invoker(), edm::TypeWithDict::isClass(), run_regression::ret, and reco::parser::SingleInvoker::retToDouble().
|
private |
Definition at line 131 of file MethodInvoker.cc.
References argsBeforeFixups_, edm::TypeWithDict::id(), invokers_, and name_.
Referenced by invoke(), and invokeLast().
|
private |
Definition at line 86 of file MethodInvoker.h.
Referenced by invoker().
|
mutableprivate |
Definition at line 88 of file MethodInvoker.h.
Referenced by invoker().
|
private |
Definition at line 85 of file MethodInvoker.h.
Referenced by invoker().