1 #ifndef LCTypedVector_h
2 #define LCTypedVector_h 1
45 if( i == 0 && (*
this)[i] == 0 ){
48 str <<
"LCTypedVector: cannot convert " <<
_col->
getTypeName() <<
" to "
Base exception class for LCIO - all other exceptions extend this.
EVENT::LCCollection * _col
virtual LCObject * getElementAt(int index) const =0
Returns pointer to element at index - no range check, use getNumberOfEntries().
LCTypedVector(EVENT::LCCollection *collection)
LCTypedVector & operator=(const LCTypedVector &)=delete
virtual const std::string & getTypeName() const =0
Returns the type name of the collection - valid names are defined in LCIO.
EVENT::LCCollection * col()
virtual int getNumberOfElements() const =0
Returns the number of elements in the collection.
Templated helper class that is an std::vector<T*> of the elements in the LCCollection.
The generic collection used in LCIO.