7 #ifndef EVENT_LCCOLLECTION_H
8 #define EVENT_LCCOLLECTION_H 1
12 #include "EVENT/LCParameters.h"
13 #include "Exceptions.h"
42 virtual const std::string &
getTypeName()
const = 0;
62 virtual int getFlag()
const = 0;
69 static const int BITDefault = 17 ;
70 static const int BITSubset = 18 ;
105 virtual void setFlag(
int flag) = 0;
The generic object that is held in an LCCollection.
Definition: LCObject.h:30
virtual bool isTransient() const =0
True if collection is transient, i.e.
virtual void setFlag(int flag)=0
Set the flag word.
virtual void removeElementAt(int i)=0
Removes the i-th element from the collection.
virtual LCObject * getElementAt(int index) const =0
Returns pointer to element at index - no range check, use getNumberOfEntries().
virtual int getFlag() const =0
Returns flag word for collection.
static const int BITTransient
Transient bit in flag word.
Definition: LCCollection.h:68
virtual LCParameters & parameters()=0
Parameters defined for this collection.
virtual void addElement(LCObject *obj)=0
Adds the given element to (end of) the collection.
Simple interface to store generic named parameters of type int, float and string. ...
Definition: LCParameters.h:28
virtual bool isSubset() const =0
True if the collection holds a subset of objects from other collections.
virtual const std::string & getTypeName() const =0
Returns the type name of the collection - valid names are defined in LCIO.
virtual int getNumberOfElements() const =0
Returns the number of elements in the collection.
The generic collection used in LCIO.
Definition: LCCollection.h:29
virtual ~LCCollection()
Destructor.
Definition: LCCollection.h:33
virtual bool isDefault() const =0
True if collection is the default collection for the given type.
virtual const LCParameters & getParameters() const =0
Parameters defined for this collection.
EventException used for signaling a 'read only exception'.
Definition: Exceptions.h:74