Resolve the method, push a MethodInvoker on the MethodStack and it's return type to TypeStack (after stripping "*" and "&") This method is used also by the LazyInvoker to perform the fetch once the final type is known If the object is a Ref/Ptr/RefToBase and the method is not found in that class: 1) it pushes a no-argument 'get()' method 2) if deep = true, it attempts to resolve and push the method on the object to which the edm ref points to. In that case, the MethodStack will contain two more items after this call instead of just one. This behaviour is what you want for non-lazy parsing 2b) if instead deep = false, it just pushes the 'get' on the stack. this will allow the LazyInvoker to then re-discover the runtime type of the pointee The method will:
- throw exception, if the member can't be resolved
- return 'false' if deep = false and it only pushed a 'get' on the stack
- return true otherwise
Definition at line 43 of file MethodSetter.cc.
References error, edm::hlt::Exception, reco::findDataMember(), reco::findMethod(), reco::parser::kIsNotConst, reco::parser::kIsNotPublic, reco::parser::kIsStatic, reco::parser::kNameDoesNotExist, reco::parser::kWrongArgumentType, reco::parser::kWrongNumberOfArguments, mem, edm::TypeWithDict::name(), reco::returnType(), and edm::MemberWithDict::typeOf().
Referenced by reco::parser::SingleInvoker::SingleInvoker().
45 vector<AnyMethodArgument> fixups;
52 <<
"member \"" << mem.first.name() <<
"\" return type is invalid:\n"
53 <<
" member type: \"" << mem.first.typeOf().qualifiedName() <<
"\"\n"
54 <<
" return type: \"" << mem.first.returnType().qualifiedName() <<
"\"\n";
73 <<
"method named \"" <<
name <<
"\" for type \""
74 <<type.
name() <<
"\" is not publically accessible.";
78 <<
"method named \"" <<
name <<
"\" for type \""
79 <<type.
name() <<
"\" is static.";
83 <<
"method named \"" <<
name <<
"\" for type \""
84 <<type.
name() <<
"\" is not const.";
88 <<
"method named \"" <<
name <<
"\" for type \""
89 <<type.
name() <<
"\" was passed the wrong number of arguments.";
93 <<
"method named \"" <<
name <<
"\" for type \""
94 <<type.
name() <<
"\" was passed the wrong types of arguments.";
98 <<
"method named \"" <<
name <<
"\" for type \""
99 <<type.
name() <<
"\" is not usable in this context.";
109 <<
"no method or data member named \"" <<
name <<
"\" found for type \""
110 <<type.
name() <<
"\"";
114 <<
"data member named \"" <<
name <<
"\" for type \""
115 <<type.
name() <<
"\" is not publically accessible.";
119 <<
"data member named \"" <<
name <<
"\" for type \""
120 <<type.
name() <<
"\" is not usable in this context.";
pair< edm::FunctionWithDict, bool > findMethod(const edm::TypeWithDict &t, const string &name, const std::vector< AnyMethodArgument > &args, std::vector< AnyMethodArgument > &fixuppedArgs, const char *iIterator, int &oError)
edm::MemberWithDict findDataMember(const edm::TypeWithDict &iType, const std::string &iName, int &oError)
bool push(const std::string &, const std::vector< AnyMethodArgument > &, const char *, bool deep=true) const
edm::TypeWithDict returnType(const edm::FunctionWithDict &mem)
uint16_t mem[nChs][nEvts]