class SIOGenericObject extends Object implements GenericObject
Modifier and Type | Field and Description |
---|---|
private double[] |
_doubleVec |
private float[] |
_floatVec |
private int[] |
_intVec |
private boolean |
_isFixedSize |
Constructor and Description |
---|
SIOGenericObject(hep.io.sio.SIOInputStream in,
int flag,
int version) |
SIOGenericObject(hep.io.sio.SIOInputStream in,
int flag,
int version,
int nInt,
int nFloat,
int nDouble) |
Modifier and Type | Method and Description |
---|---|
double |
getDoubleVal(int index)
Returns the double value for the given index.
|
float |
getFloatVal(int index)
Returns the float value for the given index.
|
int |
getIntVal(int index)
Returns the integer value for the given index.
|
int |
getNDouble()
Number of double values stored in this object.
|
int |
getNFloat()
Number of float values stored in this object.
|
int |
getNInt()
Number of integer values stored in this object.
|
boolean |
isFixedSize()
True if objects of the implementation class have a fixed size, i.e
getNInt, getNFloat and getNDouble will return values that are constant during
the lifetime of the object.
|
private void |
read(hep.io.sio.SIOInputStream in,
int flag,
int version,
int nInt,
int nFloat,
int nDouble) |
(package private) static void |
write(GenericObject object,
hep.io.sio.SIOOutputStream out,
int flags) |
private boolean _isFixedSize
private int[] _intVec
private float[] _floatVec
private double[] _doubleVec
SIOGenericObject(hep.io.sio.SIOInputStream in, int flag, int version) throws IOException
IOException
SIOGenericObject(hep.io.sio.SIOInputStream in, int flag, int version, int nInt, int nFloat, int nDouble) throws IOException
IOException
private void read(hep.io.sio.SIOInputStream in, int flag, int version, int nInt, int nFloat, int nDouble) throws IOException
IOException
static void write(GenericObject object, hep.io.sio.SIOOutputStream out, int flags) throws IOException
IOException
public int getNInt()
GenericObject
getNInt
in interface GenericObject
public int getNFloat()
GenericObject
getNFloat
in interface GenericObject
public int getNDouble()
GenericObject
getNDouble
in interface GenericObject
public int getIntVal(int index)
GenericObject
getIntVal
in interface GenericObject
public float getFloatVal(int index)
GenericObject
getFloatVal
in interface GenericObject
public double getDoubleVal(int index)
GenericObject
getDoubleVal
in interface GenericObject
public boolean isFixedSize()
GenericObject
isFixedSize
in interface GenericObject
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.