#include <FWItemRandomAccessor.h>
Public Member Functions | |
const void * | data () const |
bool | isCollection () const |
const TClass * | modelType () const |
virtual void | reset () |
void | setData (const edm::ObjectWithDict &) |
override if id of an object should be different than the index | |
const TClass * | type () const |
virtual | ~FWItemRandomAccessorBase () |
Protected Member Functions | |
FWItemRandomAccessorBase (const TClass *type, const type_info &modelTypeName) | |
void * | getDataPtr () const |
Protected Attributes | |
void * | m_data |
const TClass * | m_modelType |
const TClass * | m_type |
Private Member Functions | |
FWItemRandomAccessorBase (const FWItemRandomAccessorBase &) | |
const FWItemRandomAccessorBase & | operator= (const FWItemRandomAccessorBase &) |
Non templated part of the generic FWItemRandomAccessor<T> class.
Notice that the constructor is protected, so that it is impossible to instanciate this baseclass directly.
Definition at line 29 of file FWItemRandomAccessor.h.
FWItemRandomAccessorBase::~FWItemRandomAccessorBase | ( | ) | [virtual] |
Definition at line 37 of file FWItemRandomAccessor.cc.
{ }
FWItemRandomAccessorBase::FWItemRandomAccessorBase | ( | const TClass * | type, |
const type_info & | modelTypeName | ||
) | [protected] |
Definition at line 25 of file FWItemRandomAccessor.cc.
:m_type(type), m_modelType(TClass::GetClass(modelTypeName)), m_data(0) { }
FWItemRandomAccessorBase::FWItemRandomAccessorBase | ( | const FWItemRandomAccessorBase & | ) | [private] |
const void * FWItemRandomAccessorBase::data | ( | ) | const [virtual] |
Implements FWItemAccessorBase.
Definition at line 79 of file FWItemRandomAccessor.cc.
References m_data.
{ return m_data; }
void * FWItemRandomAccessorBase::getDataPtr | ( | ) | const [protected] |
Definition at line 85 of file FWItemRandomAccessor.cc.
References m_data.
Referenced by FWItemRandomAccessor< C, V >::modelData(), FWItemMuonDigiAccessor< C, V >::modelData(), FWItemDetSetAccessor< C, COLL, V >::modelData(), FWItemNewDetSetAccessor< C, COLL, V >::modelData(), FWItemRangeAccessor< C, R, V >::modelData(), FWItemRandomAccessor< C, V >::size(), FWItemNewDetSetAccessor< C, COLL, V >::size(), FWItemDetSetAccessor< C, COLL, V >::size(), FWItemRangeAccessor< C, R, V >::size(), and FWItemMuonDigiAccessor< C, V >::size().
{ return m_data; }
bool FWItemRandomAccessorBase::isCollection | ( | ) | const [virtual] |
Implements FWItemAccessorBase.
Definition at line 104 of file FWItemRandomAccessor.cc.
{ return true; }
const TClass * FWItemRandomAccessorBase::modelType | ( | ) | const [virtual] |
Implements FWItemAccessorBase.
Definition at line 97 of file FWItemRandomAccessor.cc.
References m_modelType.
{ assert(m_modelType); return m_modelType; }
const FWItemRandomAccessorBase& FWItemRandomAccessorBase::operator= | ( | const FWItemRandomAccessorBase & | ) | [private] |
void FWItemRandomAccessorBase::reset | ( | void | ) | [virtual] |
Implements FWItemAccessorBase.
Definition at line 70 of file FWItemRandomAccessor.cc.
References m_data.
Referenced by setData().
{ m_data = 0; }
void FWItemRandomAccessorBase::setData | ( | const edm::ObjectWithDict & | ) | [virtual] |
override if id of an object should be different than the index
Implements FWItemAccessorBase.
Definition at line 57 of file FWItemRandomAccessor.cc.
References edm::ObjectWithDict::address(), m_data, and reset().
const TClass * FWItemRandomAccessorBase::type | ( | ) | const [virtual] |
Implements FWItemAccessorBase.
Definition at line 91 of file FWItemRandomAccessor.cc.
References m_type.
{ return m_type; }
void* FWItemRandomAccessorBase::m_data [mutable, protected] |
Definition at line 48 of file FWItemRandomAccessor.h.
Referenced by data(), getDataPtr(), reset(), and setData().
const TClass* FWItemRandomAccessorBase::m_modelType [protected] |
Definition at line 47 of file FWItemRandomAccessor.h.
Referenced by modelType().
const TClass* FWItemRandomAccessorBase::m_type [protected] |
Definition at line 46 of file FWItemRandomAccessor.h.
Referenced by type().