#include <LCCollectionVec.h>
Inheritance diagram for IMPL::LCCollectionVec:

Public Member Functions | |
| LCCollectionVec (const std::string &type) | |
| virtual | ~LCCollectionVec () |
| virtual int | getNumberOfElements () const |
| virtual const std::string & | getTypeName () const |
| virtual EVENT::LCObject * | getElementAt (int index) const |
| virtual int | getFlag () const |
| virtual bool | isTransient () const |
| void | setTransient (bool val=true) |
| virtual bool | isDefault () const |
| void | setDefault (bool val=true) |
| virtual bool | isSubset () const |
| void | setSubset (bool val=true) |
| void | setFlag (int flag) |
| virtual void | addElement (EVENT::LCObject *obj) throw (EVENT::ReadOnlyException) |
| virtual void | removeElementAt (int i) throw (EVENT::ReadOnlyException) |
| virtual const EVENT::LCParameters & | getParameters () const |
| virtual EVENT::LCParameters & | parameters () |
| virtual void | addElement (LCObject *obj)=0 throw (ReadOnlyException, std::exception ) |
| virtual int | simpleUID () const |
Static Public Attributes | |
| const int | BITTransient = 16 |
| const int | BITDefault = 17 |
| const int | BITSubset = 18 |
Protected Member Functions | |
| LCCollectionVec () | |
| void | setReadOnly (bool readOnly) |
| void | checkAccess () throw ( EVENT::ReadOnlyException ) |
| void | checkAccess (const char *what) throw ( EVENT::ReadOnlyException ) |
Protected Attributes | |
| std::string | _typeName |
| int | _flag |
| LCParametersImpl | _params |
| bool | _readOnly |
| int | _id |
LCCollection
Definition at line 26 of file LCCollectionVec.h.
|
|
Default Constructor is protected - every LCCollection needs to know the type of its elements. Definition at line 33 of file LCCollectionVec.h. |
|
|
The public default constructur that takes the name of the type of the elements. Definition at line 16 of file LCCollectionVec.cc. |
|
|
Destructor. Definition at line 54 of file LCCollectionVec.cc. References isSubset(). |
|
|
Adds the given element to (end of) the collection. Throws an exception if the collection (event) is 'read only'.
|
|
|
Adds the given element to (end of) the collection. Throws an exception if the collection (event) is 'read only'.
Definition at line 124 of file LCCollectionVec.cc. Referenced by UTIL::LCRelationNavigator::createLCCollection(), and marlin::SimpleFastMCProcessor::processEvent(). |
|
|
Definition at line 20 of file AccessChecked.cc. |
|
|
|
Returns pointer to element at index - no range check !. Implements EVENT::LCCollection. Definition at line 81 of file LCCollectionVec.cc. Referenced by UTIL::LCStdHepRdr::readEvent(). |
|
|
Returns flag word for collection. Bits 16-31 are reserved for LCIO Depending on the object type stored they have a special meaning, e.g. for SimCalorimeterHits:
Implements EVENT::LCCollection. Definition at line 114 of file LCCollectionVec.cc. Referenced by marlin::LCIOOutputProcessor::dropCollections(). |
|
|
Returns the number of entries in the collection. Implements EVENT::LCCollection. Definition at line 70 of file LCCollectionVec.cc. |
|
|
Parameters defined for this run. Implements EVENT::LCCollection. Definition at line 138 of file LCCollectionVec.h. |
|
|
Returns the type name of the collection - valid names are defined in LCIO. Implements EVENT::LCCollection. Definition at line 75 of file LCCollectionVec.cc. Referenced by marlin::LCIOOutputProcessor::dropCollections(). |
|
|
True if collection is the default collection for the given type. This implies that the collection is complete and unambigous. Convenient method that checks bit BITDefault of the flag word. Implements EVENT::LCCollection. Definition at line 95 of file LCCollectionVec.cc. References _flag. |
|
|
True if the collection holds a subset of objects from other collections. If the collection is not transient only the pointers/references to the original objects will be stored. Convenient method that checks bit BITSubset of the flag word. Implements EVENT::LCCollection. Definition at line 104 of file LCCollectionVec.cc. References _flag. Referenced by ~LCCollectionVec(). |
|
|
True if collection is transient, i.e. will not be written to any LCIO file. Convenient method that checks bit 16 of the flag word. Implements EVENT::LCCollection. Definition at line 85 of file LCCollectionVec.cc. References _flag. |
|
|
Parameters defined for this run. Implements EVENT::LCCollection. Definition at line 142 of file LCCollectionVec.h. Referenced by UTIL::LCRelationNavigator::createLCCollection(). |
|
|
Removes the i-th element from the collection. Throws an exception if the collection (event) is 'read only'.
Implements EVENT::LCCollection. Definition at line 132 of file LCCollectionVec.cc. |
|
|
Sets the default flag for this collection. User need to make sure this flag is unique for a type. Definition at line 99 of file LCCollectionVec.cc. References _flag. Referenced by marlin::SimpleFastMCProcessor::processEvent(). |
|
|
Sets the flag word for this collection. Implements EVENT::LCCollection. Definition at line 119 of file LCCollectionVec.cc. References _flag. Referenced by UTIL::LCRelationNavigator::createLCCollection(), and marlin::LCIOOutputProcessor::dropCollections(). |
|
|
Reimplemented from IMPL::AccessChecked. Definition at line 41 of file LCCollectionVec.cc. References IMPL::AccessChecked::setReadOnly(). |
|
|
Sets the subset flag for this collection. Collections of subsets are only written as pointers to LCIO files, i.e. the objects have to exist in another non-transient collections. Definition at line 108 of file LCCollectionVec.cc. References _flag. |
|
|
Sets the transient flag for this collection. Transient collections are not written to LCIO files. Definition at line 89 of file LCCollectionVec.cc. References _flag. Referenced by marlin::LCIOOutputProcessor::dropCollections(), and IMPL::LCEventImpl::takeCollection(). |
|
|
Definition at line 24 of file AccessChecked.h. |
|
|
Definition at line 149 of file LCCollectionVec.h. Referenced by isDefault(), isSubset(), isTransient(), setDefault(), setFlag(), setSubset(), and setTransient(). |
|
|
Definition at line 34 of file AccessChecked.h. Referenced by IMPL::AccessChecked::AccessChecked(). |
|
|
Definition at line 150 of file LCCollectionVec.h. |
|
|
Definition at line 33 of file AccessChecked.h. Referenced by IMPL::AccessChecked::setReadOnly(). |
|
|
Definition at line 148 of file LCCollectionVec.h. |
|
|
Definition at line 69 of file LCCollection.h. |
|
|
Definition at line 70 of file LCCollection.h. |
|
|
Transient bit in flag word. Definition at line 68 of file LCCollection.h. |
1.3.9.1