#include <FWItemRandomAccessor.h>
Public Types | |
typedef COLL | collection_type |
typedef V | collection_value_type |
typedef C | container_type |
Public Member Functions | |
FWItemNewDetSetAccessor (const TClass *iClass) | |
const void * | modelData (int iIndex) const |
REGISTER_FWITEMACCESSOR_METHODS () | |
unsigned int | size () const |
Specialized accessor for the new edmNew::DetSetVector classes.
Definition at line 156 of file FWItemRandomAccessor.h.
typedef COLL FWItemNewDetSetAccessor< C, COLL, V >::collection_type |
Definition at line 160 of file FWItemRandomAccessor.h.
typedef V FWItemNewDetSetAccessor< C, COLL, V >::collection_value_type |
Definition at line 161 of file FWItemRandomAccessor.h.
typedef C FWItemNewDetSetAccessor< C, COLL, V >::container_type |
Definition at line 159 of file FWItemRandomAccessor.h.
FWItemNewDetSetAccessor< C, COLL, V >::FWItemNewDetSetAccessor | ( | const TClass * | iClass | ) | [inline] |
Definition at line 163 of file FWItemRandomAccessor.h.
: FWItemRandomAccessorBase(iClass, typeid(collection_value_type)) {}
const void* FWItemNewDetSetAccessor< C, COLL, V >::modelData | ( | int | iIndex | ) | const [inline, virtual] |
Implements FWItemAccessorBase.
Definition at line 169 of file FWItemRandomAccessor.h.
References trackerHits::c, and FWItemRandomAccessorBase::getDataPtr().
{ if (!getDataPtr()) return 0; const container_type *c = reinterpret_cast<const container_type*>(getDataPtr()); if (iIndex < 0) return 0; return &(c->data().operator[](iIndex)); }
FWItemNewDetSetAccessor< C, COLL, V >::REGISTER_FWITEMACCESSOR_METHODS | ( | ) |
unsigned int FWItemNewDetSetAccessor< C, COLL, V >::size | ( | void | ) | const [inline, virtual] |
Implements FWItemAccessorBase.
Definition at line 180 of file FWItemRandomAccessor.h.
References trackerHits::c, and FWItemRandomAccessorBase::getDataPtr().
{ if (!getDataPtr()) return 0; const container_type *c = reinterpret_cast<const container_type*>(getDataPtr()); return c->dataSize(); }