5 #include "Reflex/Object.h"
13 m_ptr( const_cast<void*>(ptr) ){
18 m_ptr( const_cast<void*>(ptr) ),
23 m_ptr( const_cast<void*>(ptr) ){
42 if( m_ptr != rhs.
m_ptr )
return false;
43 if( m_type != rhs.
m_type )
return false;
60 return m_type.Name( Reflex::SCOPED );
66 throwException(
"Object input class has not been found in the dictionary.",
74 boost::shared_ptr<void>
ret;
76 ret = boost::shared_ptr<void>( m_ptr,
RflxDeleter( m_type ) );
83 throwException(
"Object input class has not been found in the dictionary.",
88 m_type.Destruct( m_ptr );
boost::shared_ptr< void > makeShared() const
std::string typeName() const
bool operator==(const CaloTower &t1, const CaloTower &t2)
bool operator==(const Object &rhs) const
Object & operator=(const Object &rhs)
void throwException(const std::string &message, const std::string &methodName) __attribute__((noreturn))
bool operator!=(const Object &rhs) const
const Reflex::Type & type() const
void * upCast(const Reflex::Type &type, void *ptr, const Reflex::Type &asType)
Reflex::Type lookupDictionary(const std::type_info &typeInfo, bool throwFlag=true)