CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes | Friends

edm::ObjectWithDict Class Reference

#include <ObjectWithDict.h>

List of all members.

Public Member Functions

void * address () const
ObjectWithDict castObject (TypeWithDict const &type) const
ObjectWithDict construct () const
void destruct () const
TypeWithDict dynamicType () const
TypeWithDict finalType () const
ObjectWithDict get (std::string const &member) const
void invoke (std::string const &fm, ObjectWithDict *ret) const
bool isPointer () const
bool isReference () const
bool isTypedef () const
template<typename T >
T objectCast ()
 ObjectWithDict (std::type_info const &typeID, void *address)
 ObjectWithDict ()
 ObjectWithDict (TypeWithDict const &type)
 ObjectWithDict (TypeWithDict const &type, void *address)
 ObjectWithDict (TypeWithDict const &type, TypeWithDict const &signature, std::vector< void * > const &values)
 operator bool () const
TypeWithDict toType () const
std::string typeName () const
TypeWithDict typeOf () const

Private Member Functions

 ObjectWithDict (Reflex::Object const &obj)

Private Attributes

Reflex::Object object_

Friends

class FunctionWithDict
class MemberWithDict
class TypeWithDict

Detailed Description

Definition at line 17 of file ObjectWithDict.h.


Constructor & Destructor Documentation

edm::ObjectWithDict::ObjectWithDict ( ) [inline]

Definition at line 19 of file ObjectWithDict.h.

Referenced by castObject(), construct(), and get().

: object_() {}
edm::ObjectWithDict::ObjectWithDict ( TypeWithDict const &  type) [explicit]

Definition at line 8 of file ObjectWithDict.cc.

: object_(type.type_.Construct()) {}
edm::ObjectWithDict::ObjectWithDict ( TypeWithDict const &  type,
TypeWithDict const &  signature,
std::vector< void * > const &  values 
)

Definition at line 10 of file ObjectWithDict.cc.

                                                                 : object_(type.type_.Construct(signature.type_, values)) {}
edm::ObjectWithDict::ObjectWithDict ( TypeWithDict const &  type,
void *  address 
)

Definition at line 14 of file ObjectWithDict.cc.

: object_(type.type_, address) {}
edm::ObjectWithDict::ObjectWithDict ( std::type_info const &  typeID,
void *  address 
)

Definition at line 16 of file ObjectWithDict.cc.

: object_(Reflex::Type::ByTypeInfo(typeID), address) {}
edm::ObjectWithDict::ObjectWithDict ( Reflex::Object const &  obj) [inline, explicit, private]

Definition at line 84 of file ObjectWithDict.h.

: object_(obj) {}

Member Function Documentation

void* edm::ObjectWithDict::address ( ) const [inline]
ObjectWithDict edm::ObjectWithDict::castObject ( TypeWithDict const &  type) const
ObjectWithDict edm::ObjectWithDict::construct ( ) const

Definition at line 64 of file ObjectWithDict.cc.

References object_, and ObjectWithDict().

Referenced by fwlite::DataGetterHelper::getBranchData(), and FWParameterSetterBase::makeSetterFor().

                                  {
    return ObjectWithDict(object_.TypeOf().Construct());
  }
void edm::ObjectWithDict::destruct ( ) const [inline]
TypeWithDict edm::ObjectWithDict::dynamicType ( ) const

Definition at line 54 of file ObjectWithDict.cc.

References object_, and TypeWithDict.

Referenced by fwlite::RecordWriter::update().

                                    {
    return TypeWithDict(object_.DynamicType());
  }
TypeWithDict edm::ObjectWithDict::finalType ( ) const

Definition at line 49 of file ObjectWithDict.cc.

References object_, and TypeWithDict.

                                  {
    return TypeWithDict(object_.TypeOf().FinalType());
  }
ObjectWithDict edm::ObjectWithDict::get ( std::string const &  member) const [inline]

Definition at line 63 of file ObjectWithDict.h.

References object_, and ObjectWithDict().

Referenced by edm::convert_handle(), and edm::Event::put().

                                                      {
      return ObjectWithDict(object_.Get(member));
    }
void edm::ObjectWithDict::invoke ( std::string const &  fm,
ObjectWithDict ret 
) const [inline]

Definition at line 57 of file ObjectWithDict.h.

References object_.

Referenced by reco::parser::ExpressionVar::value(), and reco::parser::ExpressionLazyVar::value().

                                                               {
      object_.Invoke(fm, &ret->object_);
    }
bool edm::ObjectWithDict::isPointer ( ) const

Definition at line 24 of file ObjectWithDict.cc.

References object_.

                                  {
    return object_.TypeOf().IsPointer();
  }
bool edm::ObjectWithDict::isReference ( ) const

Definition at line 29 of file ObjectWithDict.cc.

References object_.

                                    {
    return object_.TypeOf().IsReference();
  }
bool edm::ObjectWithDict::isTypedef ( ) const

Definition at line 34 of file ObjectWithDict.cc.

References object_.

                                  {
    return object_.TypeOf().IsTypedef();
  }
template<typename T >
T edm::ObjectWithDict::objectCast ( ) [inline]

Definition at line 75 of file ObjectWithDict.h.

References object_.

                                         {
      return Reflex::Object_Cast<T>(this->object_);
    }
edm::ObjectWithDict::operator bool ( ) const [inline, explicit]

Definition at line 68 of file ObjectWithDict.h.

References object_.

                                   {
      return bool(object_);
    }
TypeWithDict edm::ObjectWithDict::toType ( ) const

Definition at line 44 of file ObjectWithDict.cc.

References object_, and TypeWithDict.

                               {
    return TypeWithDict(object_.TypeOf().ToType());
  }
std::string edm::ObjectWithDict::typeName ( ) const

Definition at line 19 of file ObjectWithDict.cc.

References object_.

                                 {
    return object_.TypeOf().TypeInfo().name();
  }
TypeWithDict edm::ObjectWithDict::typeOf ( ) const

Friends And Related Function Documentation

friend class FunctionWithDict [friend]

Definition at line 80 of file ObjectWithDict.h.

friend class MemberWithDict [friend]

Definition at line 81 of file ObjectWithDict.h.

friend class TypeWithDict [friend]

Definition at line 82 of file ObjectWithDict.h.

Referenced by dynamicType(), finalType(), toType(), and typeOf().


Member Data Documentation

Reflex::Object edm::ObjectWithDict::object_ [private]