CMS 3D CMS Logo

Public Member Functions | Private Attributes

edm::FunctionWithDict Class Reference

#include <FunctionWithDict.h>

List of all members.

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.

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

Definition at line 11 of file FunctionWithDict.cc.


Member Function Documentation

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

Definition at line 82 of file FunctionWithDict.cc.

References function_.

                                {
    return function_.TypeOf().FunctionParameter_Begin();
  }
TypeWithDict edm::FunctionWithDict::declaringType ( ) const

Definition at line 37 of file FunctionWithDict.cc.

References function_.

Referenced by reco::checkMethod().

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

Definition at line 87 of file FunctionWithDict.cc.

References function_.

                              {
    return function_.TypeOf().FunctionParameter_End();
  }
TypeWithDict edm::FunctionWithDict::finalReturnType ( ) const

Definition at line 32 of file FunctionWithDict.cc.

References function_.

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

                                          {
    return (TypeWithDict(function_.TypeOf().ReturnType().FinalType()));
  }
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().

                                                             {
    return function_.FunctionParameterSize(required);
  }
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().

                                                                                                               {
    Reflex::Object reflexReturn(ret->typeOf().type_, ret->address());
    function_.Invoke(Reflex::Object(obj.typeOf().type_, obj.address()), &reflexReturn, values);
  }
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().

                                  {
    return function_.IsConst();
  }
bool edm::FunctionWithDict::isConstructor ( ) const

Definition at line 47 of file FunctionWithDict.cc.

References function_.

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

                                        {
    return function_.IsConstructor();
  }
bool edm::FunctionWithDict::isDestructor ( ) const

Definition at line 52 of file FunctionWithDict.cc.

References function_.

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

                                       {
    return function_.IsDestructor();
  }
bool edm::FunctionWithDict::isOperator ( ) const

Definition at line 57 of file FunctionWithDict.cc.

References function_.

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

                                     {
    return function_.IsOperator();
  }
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().

                                   {
    return function_.IsPublic();
  }
bool edm::FunctionWithDict::isStatic ( ) const

Definition at line 66 of file FunctionWithDict.cc.

References function_.

Referenced by reco::checkMethod().

                                        {
    return function_.IsStatic();
  }
std::string edm::FunctionWithDict::name ( void  ) const
edm::FunctionWithDict::operator bool ( ) const [explicit]

Definition at line 91 of file FunctionWithDict.cc.

References function_.

                                        {
    return bool(function_);
  }
TypeWithDict edm::FunctionWithDict::returnType ( ) const

Definition at line 27 of file FunctionWithDict.cc.

References function_.

Referenced by FWTableViewManager::tableFormats().

                                     {
    return (TypeWithDict(function_.TypeOf().ReturnType()));
  }
size_t edm::FunctionWithDict::size ( void  ) const [inline]

Definition at line 55 of file FunctionWithDict.h.

References functionParameterSize().

                        {
      return functionParameterSize();
    }
std::string edm::FunctionWithDict::typeName ( ) const

Definition at line 19 of file FunctionWithDict.cc.

References function_.

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

Definition at line 22 of file FunctionWithDict.cc.

References function_.

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

                                 {
    return (TypeWithDict(function_.TypeOf()));
  }

Member Data Documentation

Reflex::Member edm::FunctionWithDict::function_ [private]