#include <ObjectWithDict.h>
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 |
Definition at line 17 of file ObjectWithDict.h.
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.
edm::ObjectWithDict::ObjectWithDict | ( | TypeWithDict const & | type, |
TypeWithDict const & | signature, | ||
std::vector< void * > const & | values | ||
) |
edm::ObjectWithDict::ObjectWithDict | ( | TypeWithDict const & | type, |
void * | address | ||
) |
Definition at line 14 of file ObjectWithDict.cc.
edm::ObjectWithDict::ObjectWithDict | ( | std::type_info const & | typeID, |
void * | address | ||
) |
Definition at line 16 of file ObjectWithDict.cc.
edm::ObjectWithDict::ObjectWithDict | ( | Reflex::Object const & | obj | ) | [inline, explicit, private] |
Definition at line 84 of file ObjectWithDict.h.
void* edm::ObjectWithDict::address | ( | ) | const [inline] |
Definition at line 37 of file ObjectWithDict.h.
References object_.
Referenced by reco::parser::ExpressionVar::delStorage(), fwlite::DataGetterHelper::getBranchData(), fwlite::DataGetterHelper::getBranchDataFor(), fwlite::DataGetterHelper::getByLabel(), reco::parser::MethodInvoker::invoke(), FWSimpleProxyHelper::itemChanged(), FWParameterSetterBase::makeSetterFor(), reco::parser::ExpressionVar::objToDouble(), edm::Event::put(), FWItemTVirtualCollectionProxyAccessor::setData(), FWItemSingleAccessor::setData(), and FWItemRandomAccessorBase::setData().
{ return object_.Address(); }
ObjectWithDict edm::ObjectWithDict::castObject | ( | TypeWithDict const & | type | ) | const |
Definition at line 59 of file ObjectWithDict.cc.
References object_, ObjectWithDict(), and edm::TypeWithDict::type_.
Referenced by PhysicsTools::Calibration::MVAComputer::addProcessor(), FWSimpleProxyHelper::itemChanged(), and FWParameterSetterBase::makeSetterFor().
{ return ObjectWithDict(object_.CastObject(type.type_)); }
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] |
Definition at line 33 of file ObjectWithDict.h.
References object_.
Referenced by fwlite::DataGetterHelper::getBranchData(), fwlite::internal::Data::~Data(), and edm::GenericObjectOwner::~GenericObjectOwner().
{ object_.Destruct(); }
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().
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(); }
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] |
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 |
Definition at line 39 of file ObjectWithDict.cc.
References object_, and TypeWithDict.
Referenced by reco::parser::ExpressionVar::delStorage(), reco::parser::MethodInvoker::invoke(), FWItemTVirtualCollectionProxyAccessor::setData(), FWItemSingleAccessor::setData(), FWItemRandomAccessorBase::setData(), and reco::parser::SingleInvoker::throwFailedConversion().
{ return TypeWithDict(object_.TypeOf()); }
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().
Reflex::Object edm::ObjectWithDict::object_ [private] |
Definition at line 86 of file ObjectWithDict.h.
Referenced by address(), castObject(), construct(), destruct(), dynamicType(), finalType(), edm::MemberWithDict::get(), get(), invoke(), edm::FunctionWithDict::invoke(), isPointer(), isReference(), isTypedef(), objectCast(), operator bool(), toType(), typeName(), and typeOf().