1 #ifndef UTIL_LCFIXEDOBJECT_H
2 #define UTIL_LCFIXEDOBJECT_H 1
24 template <
int NINT,
int NFLOAT,
int NDOUBLE>
67 " that is not LCGenericObjectImpl" ) ;
74 throw EVENT::Exception(
"LCFixedObject(LCObject* obj): Wrong number of elements in object" ) ;
Base exception class for LCIO - all other exceptions extend this.
virtual int getNFloat() const
Number of float values stored in this object.
virtual int id() const
Provide default implementation for id.
virtual int getNDouble() const
Number of double values stored in this object.
virtual int getIntVal(int index) const
Returns the integer value for the given index.
virtual float getFloatVal(int index) const
Returns the float value for the given index.
IMPL::LCGenericObjectImpl * _obj
virtual int id() const
Return the id of the underlying LCGenericObjectImpl.
LCFixedObject & operator=(const LCFixedObject &)=default
default assignment operator - use with care
int getNFloat() const
Number of float values stored in this object.
double getDoubleVal(int index) const
Returns the double value for the given index.
LCFixedObject(LCObject *object)
C'tor to be used for elements of LCGenericObjects read from an LCIO file or the database.
virtual double getDoubleVal(int index) const
Returns the double value for the given index.
virtual ~LCFixedObject()
Clean up if we created a new LCGenericObjectImpl.
bool isFixedSize() const
True if objects of the implementation class have a fixed size, i.e getNInt, getNFloat and getNDouble ...
LCFixedObject()
Default c'tor.
Default LCIO implementation of the interface to store generic user data.
Simple interface to store generic user data.
int getNInt() const
Number of integer values stored in this object.
float getFloatVal(int index) const
Returns the float value for the given index.
virtual int getNInt() const
Number of integer values stored in this object.
Template class for fixed size LCGenericObject subclasses.
int getNDouble() const
Number of double values stored in this object.
int getIntVal(int index) const
Returns the integer value for the given index.
IMPL::LCGenericObjectImpl * obj()
The LCGenericObjectImpl .