3 #include "EVENT/LCIO.h"
8 using namespace EVENT ;
24 LCObjectVec::iterator iter =
begin() ;
25 while( iter !=
end() ){
37 LCObjectVec::const_iterator iter =
begin() ;
42 while( iter !=
end() ){
The generic object that is held in an LCCollection.
virtual int getNumberOfElements() const
Returns the number of entries in the collection.
void setSubset(bool val=true)
Sets the subset flag for this collection.
virtual EVENT::LCObject * getElementAt(int index) const
Returns pointer to element at index - no range check !.
void setDefault(bool val=true)
Sets the default flag for this collection.
virtual bool isDefault() const
True if collection is the default collection for the given type.
LCObject * end(LCObject *...args)
void setTransient(bool val=true)
Sets the transient flag for this collection.
void setFlag(int flag)
Sets the flag word for this collection.
void setReadOnly(bool readOnly)
virtual ~LCCollectionVec()
Destructor.
LCObject * push_back(LCObject *...args)
virtual const std::string & getTypeName() const
Returns the type name of the collection - valid names are defined in LCIO.
static const int BITTransient
Transient bit in flag word.
LCObject * erase(LCObject *...args)
virtual bool isSubset() const
True if the collection holds a subset of objects from other collections.
virtual void addElement(EVENT::LCObject *obj)
Adds the given element to (end of) the collection.
LCObject * size(LCObject *...args)
virtual void setReadOnly(bool readOnly)
virtual int getFlag() const
Returns flag word for collection.
LCObject * begin(LCObject *...args)
virtual void removeElementAt(int i)
Removes the i-th element from the collection.
Controls access to objects.
virtual bool isTransient() const
True if collection is transient, i.e.
static const int BITDefault
static const int BITSubset
LCObject * operator[](LCObject *...args)