CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
edm::FunctionWithDict Class Reference

#include <FunctionWithDict.h>

Public Member Functions

Reflex::Type_Iterator begin () const
 
TypeWithDict declaringType () const
 
Reflex::Type_Iterator end () const
 
TypeWithDict finalReturnType () const
 
size_t functionParameterSize (bool required=false) const
 
 FunctionWithDict ()
 
 FunctionWithDict (Reflex::Member const &function)
 
void invoke (ObjectWithDict const &obj, ObjectWithDict *ret, std::vector< void * > const &values=std::vector< void * >()) const
 
bool isConst () const
 
bool isConstructor () const
 
bool isDestructor () const
 
bool isOperator () const
 
bool isPublic () const
 
bool isStatic () const
 
std::string name () const
 
 operator bool () const
 
TypeWithDict returnType () const
 
size_t size () const
 
std::string typeName () const
 
TypeWithDict typeOf () const
 

Private Attributes

Reflex::Member function_
 

Detailed Description

Definition at line 19 of file FunctionWithDict.h.

Constructor & Destructor Documentation

edm::FunctionWithDict::FunctionWithDict ( )
inline

Definition at line 21 of file FunctionWithDict.h.

21 : function_() {}
Reflex::Member function_
edm::FunctionWithDict::FunctionWithDict ( Reflex::Member const &  function)
explicit

Definition at line 11 of file FunctionWithDict.cc.

11 : function_(function) {}
Reflex::Member function_

Member Function Documentation

Reflex::Type_Iterator edm::FunctionWithDict::begin ( void  ) const

Definition at line 82 of file FunctionWithDict.cc.

References function_.

82  {
83  return function_.TypeOf().FunctionParameter_Begin();
84  }
Reflex::Member function_
TypeWithDict edm::FunctionWithDict::declaringType ( ) const

Definition at line 37 of file FunctionWithDict.cc.

References function_.

Referenced by reco::checkMethod().

37  {
38  return (TypeWithDict(function_.DeclaringType()));
39  }
Reflex::Member function_
Reflex::Type_Iterator edm::FunctionWithDict::end ( void  ) const

Definition at line 87 of file FunctionWithDict.cc.

References function_.

87  {
88  return function_.TypeOf().FunctionParameter_End();
89  }
Reflex::Member function_
TypeWithDict edm::FunctionWithDict::finalReturnType ( ) const

Definition at line 32 of file FunctionWithDict.cc.

References function_.

Referenced by reco::parser::MethodInvoker::invoke(), and reco::returnType().

32  {
33  return (TypeWithDict(function_.TypeOf().ReturnType().FinalType()));
34  }
Reflex::Member function_
size_t edm::FunctionWithDict::functionParameterSize ( bool  required = false) const

Definition at line 71 of file FunctionWithDict.cc.

References function_.

Referenced by reco::checkMethod(), size(), and FWTableViewManager::tableFormats().

71  {
72  return function_.FunctionParameterSize(required);
73  }
Reflex::Member function_
void edm::FunctionWithDict::invoke ( ObjectWithDict const &  obj,
ObjectWithDict ret,
std::vector< void * > const &  values = std::vector<void*>() 
) const

Definition at line 76 of file FunctionWithDict.cc.

References edm::ObjectWithDict::address(), function_, edm::TypeWithDict::type_, and edm::ObjectWithDict::typeOf().

Referenced by reco::parser::MethodInvoker::invoke().

76  {
77  Reflex::Object reflexReturn(ret->typeOf().type_, ret->address());
78  function_.Invoke(Reflex::Object(obj.typeOf().type_, obj.address()), &reflexReturn, values);
79  }
Reflex::Member function_
bool edm::FunctionWithDict::isConst ( ) const

Definition at line 42 of file FunctionWithDict.cc.

References function_.

Referenced by reco::checkMethod(), fireworks::OptionNode::fillOptionForType(), and FWTableViewManager::tableFormats().

42  {
43  return function_.IsConst();
44  }
Reflex::Member function_
bool edm::FunctionWithDict::isConstructor ( ) const

Definition at line 47 of file FunctionWithDict.cc.

References function_.

Referenced by reco::checkMethod(), and fireworks::OptionNode::fillOptionForType().

47  {
48  return function_.IsConstructor();
49  }
Reflex::Member function_
bool edm::FunctionWithDict::isDestructor ( ) const

Definition at line 52 of file FunctionWithDict.cc.

References function_.

Referenced by reco::checkMethod(), and fireworks::OptionNode::fillOptionForType().

52  {
53  return function_.IsDestructor();
54  }
Reflex::Member function_
bool edm::FunctionWithDict::isOperator ( ) const

Definition at line 57 of file FunctionWithDict.cc.

References function_.

Referenced by fireworks::OptionNode::fillOptionForType().

57  {
58  return function_.IsOperator();
59  }
Reflex::Member function_
bool edm::FunctionWithDict::isPublic ( ) const

Definition at line 62 of file FunctionWithDict.cc.

References function_.

Referenced by reco::checkMethod(), fireworks::OptionNode::fillOptionForType(), and FWTableViewManager::tableFormats().

62  {
63  return function_.IsPublic();
64  }
Reflex::Member function_
bool edm::FunctionWithDict::isStatic ( ) const

Definition at line 66 of file FunctionWithDict.cc.

References function_.

Referenced by reco::checkMethod().

66  {
67  return function_.IsStatic();
68  }
Reflex::Member function_
std::string edm::FunctionWithDict::name ( void  ) const
edm::FunctionWithDict::operator bool ( ) const
explicit

Definition at line 91 of file FunctionWithDict.cc.

91  {
92  return bool(function_);
93  }
Reflex::Member function_
TypeWithDict edm::FunctionWithDict::returnType ( ) const

Definition at line 27 of file FunctionWithDict.cc.

References function_.

Referenced by FWTableViewManager::tableFormats().

27  {
28  return (TypeWithDict(function_.TypeOf().ReturnType()));
29  }
Reflex::Member function_
size_t edm::FunctionWithDict::size ( void  ) const
inline

Definition at line 55 of file FunctionWithDict.h.

References functionParameterSize().

55  {
56  return functionParameterSize();
57  }
size_t functionParameterSize(bool required=false) const
std::string edm::FunctionWithDict::typeName ( ) const

Definition at line 19 of file FunctionWithDict.cc.

References function_.

19 {return function_.TypeOf().Name();}
Reflex::Member function_
TypeWithDict edm::FunctionWithDict::typeOf ( ) const

Definition at line 22 of file FunctionWithDict.cc.

References function_.

Referenced by reco::parser::MethodInvoker::returnTypeName().

22  {
23  return (TypeWithDict(function_.TypeOf()));
24  }
Reflex::Member function_

Member Data Documentation

Reflex::Member edm::FunctionWithDict::function_
private