1 #ifndef EVENT_LCCOLLECTIONVEC_H
2 #define EVENT_LCCOLLECTIONVEC_H 1
7 #include "EVENT/LCCollection.h"
8 #include "EVENT/LCObject.h"
9 #include "AccessChecked.h"
10 #include "LCParametersImpl.h"
148 void setReadOnly(
bool readOnly) ;
150 std::string _typeName ;
The generic object that is held in an LCCollection.
Definition: LCObject.h:30
virtual EVENT::LCParameters & parameters()
Parameters defined for this run.
Definition: LCCollectionVec.h:144
virtual int getNumberOfElements() const
Returns the number of entries in the collection.
Definition: LCCollectionVec.cc:70
void setSubset(bool val=true)
Sets the subset flag for this collection.
Definition: LCCollectionVec.cc:108
virtual EVENT::LCObject * getElementAt(int index) const
Returns pointer to element at index - no range check !.
Definition: LCCollectionVec.cc:81
void setDefault(bool val=true)
Sets the default flag for this collection.
Definition: LCCollectionVec.cc:99
Implementation of the LCCollection using (inheriting from) an STL vector of LCObjects.
Definition: LCCollectionVec.h:26
std::vector< LCObject * > LCObjectVec
Vector of (pointers to) LCObjects.
Definition: LCObject.h:17
LCCollectionVec()
Default Constructor should be protected - every LCCollection needs to know the type of its elements...
Definition: LCCollectionVec.h:35
virtual const EVENT::LCParameters & getParameters() const
Parameters defined for this run.
Definition: LCCollectionVec.h:140
virtual bool isDefault() const
True if collection is the default collection for the given type.
Definition: LCCollectionVec.cc:95
void setTransient(bool val=true)
Sets the transient flag for this collection.
Definition: LCCollectionVec.cc:89
void setFlag(int flag)
Sets the flag word for this collection.
Definition: LCCollectionVec.cc:119
virtual ~LCCollectionVec()
Destructor.
Definition: LCCollectionVec.cc:54
Implementation of Simple interface to store generic named parameters of type int, float and string...
Definition: LCParametersImpl.h:35
virtual const std::string & getTypeName() const
Returns the type name of the collection - valid names are defined in LCIO.
Definition: LCCollectionVec.cc:75
Simple interface to store generic named parameters of type int, float and string. ...
Definition: LCParameters.h:28
virtual bool isSubset() const
True if the collection holds a subset of objects from other collections.
Definition: LCCollectionVec.cc:104
virtual void addElement(EVENT::LCObject *obj)
Adds the given element to (end of) the collection.
Definition: LCCollectionVec.cc:124
The generic collection used in LCIO.
Definition: LCCollection.h:29
virtual int getFlag() const
Returns flag word for collection.
Definition: LCCollectionVec.cc:114
virtual void removeElementAt(int i)
Removes the i-th element from the collection.
Definition: LCCollectionVec.cc:132
Controls access to objects.
Definition: AccessChecked.h:17
virtual bool isTransient() const
True if collection is transient, i.e.
Definition: LCCollectionVec.cc:85
EventException used for signaling a 'read only exception'.
Definition: Exceptions.h:74