#include <MethodInvoker.h>
Public Member Functions | |
edm::ObjectWithDict | invoke (const edm::ObjectWithDict &obj, edm::ObjectWithDict &retstore) const |
bool | isFunction () const |
edm::MemberWithDict const | member () const |
edm::FunctionWithDict const | method () const |
MethodInvoker (const edm::FunctionWithDict &method, const std::vector< AnyMethodArgument > &ints=std::vector< AnyMethodArgument >()) | |
MethodInvoker (const edm::MemberWithDict &) | |
MethodInvoker (const MethodInvoker &) | |
std::string | methodName () const |
MethodInvoker & | operator= (const MethodInvoker &) |
std::string | returnTypeName () const |
Private Member Functions | |
void | setArgs () |
Private Attributes | |
std::vector< void * > | args_ |
std::vector< AnyMethodArgument > | ints_ |
bool | isFunction_ |
edm::MemberWithDict | member_ |
edm::FunctionWithDict | method_ |
edm::TypeWithDict | retTypeFinal_ |
Definition at line 31 of file MethodInvoker.h.
|
explicit |
Definition at line 14 of file MethodInvoker.cc.
References edm::FunctionWithDict::finalReturnType(), isFunction_, method_, retTypeFinal_, and setArgs().
|
explicit |
Definition at line 40 of file MethodInvoker.cc.
References setArgs().
MethodInvoker::MethodInvoker | ( | const MethodInvoker & | rhs | ) |
Definition at line 62 of file MethodInvoker.cc.
References setArgs().
edm::ObjectWithDict MethodInvoker::invoke | ( | const edm::ObjectWithDict & | obj, |
edm::ObjectWithDict & | retstore | ||
) | const |
Invokes the method, putting the result in retval. Returns the Object that points to the result value, after removing any "*" and "&" Caller code is responsible for allocating retstore before calling 'invoke', and of deallocating it afterwards
Definition at line 119 of file MethodInvoker.cc.
References edm::ObjectWithDict::address(), args_, edm::errors::Configuration, Exception, edm::MemberWithDict::get(), edm::errors::InvalidReference, edm::FunctionWithDict::invoke(), isFunction_, edm::TypeWithDict::isPointer(), edm::TypeWithDict::isReference(), member_, method_, methodName(), edm::TypeWithDict::qualifiedName(), runTheMatrix::ret, retTypeFinal_, edm::TypeWithDict::stripConstRef(), edm::TypeWithDict::toType(), edm::ObjectWithDict::typeOf(), and edm::MemberWithDict::typeOf().
|
inline |
|
inline |
|
inline |
std::string MethodInvoker::methodName | ( | ) | const |
Definition at line 99 of file MethodInvoker.cc.
References isFunction_, member_, method_, edm::MemberWithDict::name(), and edm::FunctionWithDict::name().
Referenced by invoke().
MethodInvoker & MethodInvoker::operator= | ( | const MethodInvoker & | rhs | ) |
Definition at line 74 of file MethodInvoker.cc.
References ints_, isFunction_, member_, method_, retTypeFinal_, and setArgs().
std::string MethodInvoker::returnTypeName | ( | ) | const |
Definition at line 109 of file MethodInvoker.cc.
References isFunction_, member_, method_, edm::TypeWithDict::qualifiedName(), edm::FunctionWithDict::typeName(), and edm::MemberWithDict::typeOf().
|
private |
Definition at line 90 of file MethodInvoker.cc.
References args_, i, and ints_.
Referenced by MethodInvoker(), and operator=().
|
private |
Definition at line 36 of file MethodInvoker.h.
Referenced by invoke(), valtools.webpage::parseArgs(), batchmanager.BatchManager::ParseOptions(), and setArgs().
|
private |
Definition at line 35 of file MethodInvoker.h.
Referenced by operator=(), and setArgs().
|
private |
Definition at line 38 of file MethodInvoker.h.
Referenced by invoke(), isFunction(), MethodInvoker(), methodName(), operator=(), and returnTypeName().
|
private |
Definition at line 34 of file MethodInvoker.h.
Referenced by invoke(), member(), methodName(), operator=(), and returnTypeName().
|
private |
Definition at line 33 of file MethodInvoker.h.
Referenced by invoke(), method(), MethodInvoker(), methodName(), operator=(), and returnTypeName().
|
private |
Definition at line 39 of file MethodInvoker.h.
Referenced by invoke(), MethodInvoker(), and operator=().