CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FunctionWithDict.h
Go to the documentation of this file.
1 #ifndef FWCore_Utilities_FunctionWithDict_h
2 #define FWCore_Utilities_FunctionWithDict_h
3 
4 /*----------------------------------------------------------------------
5 
6 FunctionWithDict: A holder for a class member function
7 
8 ----------------------------------------------------------------------*/
9 
11 
12 #include "TMethod.h"
13 #include "TMethodArg.h"
14 #include "TInterpreter.h"
15 
16 #include <cassert>
17 #include <cstdlib>
18 #include <cstdio>
19 #include <string>
20 #include <vector>
21 
22 namespace edm {
23 
24 class ObjectWithDict;
25 class TypeWithDict;
26 
28 private:
29  TMethod* function_;
30  TInterpreter::CallFuncIFacePtr_t funcptr_;
31 
32 public:
34  explicit FunctionWithDict(TMethod*);
35  explicit operator bool() const;
36  std::string name() const;
37  std::string typeName() const;
39  bool isConst() const;
40  bool isConstructor() const;
41  bool isDestructor() const;
42  bool isOperator() const;
43  bool isPublic() const;
44  bool isStatic() const;
46  size_t functionParameterSize(bool required = false) const;
47  size_t size() const;
48  void invoke(ObjectWithDict const& obj, ObjectWithDict* ret = nullptr, std::vector<void*> const& values = std::vector<void*>()) const;
49  void invoke(ObjectWithDict* ret = nullptr, std::vector<void*> const& values = std::vector<void*>()) const;
52 };
53 
54 } // namespace edm
55 
56 #endif // FWCore_Utilities_FunctionWithDict_h
tuple ret
prodAgent to be discontinued
bool isConstructor() const
TypeWithDict declaringType() const
IterWithDict< TMethodArg > end() const
std::string name() const
IterWithDict< TMethodArg > begin() const
std::string typeName() const
void invoke(ObjectWithDict const &obj, ObjectWithDict *ret=nullptr, std::vector< void * > const &values=std::vector< void * >()) const
Call a member function.
TypeWithDict finalReturnType() const
size_t functionParameterSize(bool required=false) const
TInterpreter::CallFuncIFacePtr_t funcptr_
bool isDestructor() const