![]() |
Diana Software
|
Interface for raw daq vectors in Diana. More...
Public Member Functions | |
| QVectorI () | |
| QVectorI (const size_t size) | |
| QVectorI (const QVectorI &orig) | |
| QVectorI (const QVector &orig) | |
| QVectorI (const std::vector< int > &orig) | |
| QVectorI (const std::vector< double > &orig) | |
| ~QVectorI () | |
| const QVectorI & | operator= (const QVectorI &orig) |
| const QVectorI & | operator= (const QVector &orig) |
| const QVectorI & | operator= (const std::vector< int > &orig) |
| const QVectorI & | operator= (const std::vector< double > &orig) |
| void | Resize (const size_t size) |
| size_t | Size () const |
| void | Clear () |
| reset members to default values More... | |
| void | Initialize (int val) |
| int & | operator[] (size_t i) |
| int | operator[] (size_t i) const |
Public Member Functions inherited from QObject | |
| QObject () | |
| default constructor More... | |
| virtual | ~QObject () |
| destructor More... | |
| QObject & | operator= (const QObject &rhs) |
| operator= More... | |
| void | Validate () |
| make object valid More... | |
| void | InValidate () |
| make object non valid More... | |
| bool | IsValid () const |
| check wheter object is valid More... | |
| void | SetWrite (bool write=true) |
| write or not this object More... | |
| bool | GetWrite () const |
| check wheter write or not this object More... | |
| bool | IsRequired () const |
| check wheter this object is required by some module More... | |
| void | SetIsRequired (bool required=true) |
| set that this object is required More... | |
| bool | IsJustAdded () const |
| check wheter this object has been just added by some module More... | |
| void | SetIsJustAdded (bool added=true) |
| set that this object has been just added More... | |
| void | Reset () |
| set object to non valid and calls Clear() More... | |
| virtual bool | Fill (QObject *evData) const =0 |
| calls operator= of inheriting classes. Validity flag and bits are not copied. This function is automatically declared/implemented in derived classes by QObjectDef/QObjectImp. If evData type mismatches returns false, true otherwise. More... | |
| void | FullyFill (QObject *evData) const |
| calls Fill(QObject*) if this QObject IsValid(). Copies Validity flag and bits More... | |
| virtual QObject * | Duplicate () const =0 |
| create object of same type, this function is automatically declared/implemented in derived classes by QObjectDef/QObjectImp More... | |
| virtual void | Dump (std::ostream &o) const |
| print content to stream (intended for screen print or log files) More... | |
| virtual void | Print () const |
| print content on screen More... | |
| virtual QError | WriteOnStream (std::ostream &o) const |
| print content to stream (intended for storage in text files) More... | |
| virtual QError | ReadFromStream (std::istream &o) |
| fill content from stream (intended for storage in text files) More... | |
| void | CopyBits (QObject *obj) const |
| copy validity and temporary bits to another QObject More... | |
| virtual void | Draw (Option_t *option="") |
Private Member Functions | |
| QObjectDef (QVectorI, 3) | |
Private Attributes | |
| Int_t | fSize |
| size of the array More... | |
| Int_t | fAllocSize |
| Int_t * | fData |
| array More... | |
Additional Inherited Members | |
Public Types inherited from QObject | |
| enum | { kIsValid = BIT(15) , kWrite = BIT(0) , kIsRequired = BIT(1) , kIsJustAdded = BIT(2) } |
| TObject bits. More... | |
Static Public Member Functions inherited from QObject | |
| static QObject * | New (const char *object) |
Interface for raw daq vectors in Diana.
Definition at line 18 of file QVectorI.hh.
| Q_BEGIN_NAMESPACE QVectorI::QVectorI | ( | ) |
Definition at line 11 of file QVectorI.cc.
References fAllocSize, fData, and fSize.
| QVectorI::QVectorI | ( | const size_t | size | ) |
Definition at line 18 of file QVectorI.cc.
References fAllocSize, fData, fSize, and Resize().
| QVectorI::QVectorI | ( | const QVectorI & | orig | ) |
Definition at line 27 of file QVectorI.cc.
References fAllocSize, fData, fSize, QObject::operator=(), and operator=().
| QVectorI::QVectorI | ( | const QVector & | orig | ) |
Definition at line 36 of file QVectorI.cc.
References fAllocSize, fData, fSize, and operator=().
| QVectorI::QVectorI | ( | const std::vector< int > & | orig | ) |
Definition at line 44 of file QVectorI.cc.
References fAllocSize, fData, fSize, and operator=().
| QVectorI::QVectorI | ( | const std::vector< double > & | orig | ) |
Definition at line 52 of file QVectorI.cc.
References fAllocSize, fData, fSize, and operator=().
| QVectorI::~QVectorI | ( | ) |
Definition at line 60 of file QVectorI.cc.
References fAllocSize, fData, and fSize.
|
inlinevirtual |
reset members to default values
Implements QObject.
Definition at line 47 of file QVectorI.hh.
References Resize().
| void QVectorI::Initialize | ( | int | val | ) |
Definition at line 119 of file QVectorI.cc.
Definition at line 100 of file QVectorI.cc.
References fData, fSize, Resize(), and QVector::Size().
Definition at line 92 of file QVectorI.cc.
References fData, fSize, QObject::operator=(), Resize(), and Size().
Referenced by QVectorI().
| const QVectorI & QVectorI::operator= | ( | const std::vector< double > & | orig | ) |
Definition at line 113 of file QVectorI.cc.
| const QVectorI & QVectorI::operator= | ( | const std::vector< int > & | orig | ) |
Definition at line 107 of file QVectorI.cc.
| int & QVectorI::operator[] | ( | size_t | i | ) |
Definition at line 123 of file QVectorI.cc.
References DianaThrow, fData, fSize, and QERR_OUT_OF_RANGE.
| int QVectorI::operator[] | ( | size_t | i | ) | const |
Definition at line 133 of file QVectorI.cc.
References DianaThrow, fData, fSize, Q_INT_DEFAULT, and QERR_OUT_OF_RANGE.
|
private |
| void QVectorI::Resize | ( | const size_t | size | ) |
Definition at line 68 of file QVectorI.cc.
References fAllocSize, fData, and fSize.
Referenced by Clear(), operator=(), and QVectorI().
|
inline |
Definition at line 45 of file QVectorI.hh.
References fSize.
Referenced by QVector::operator=(), and operator=().
|
private |
Definition at line 59 of file QVectorI.hh.
Referenced by QVectorI(), Resize(), and ~QVectorI().
|
private |
array
Definition at line 61 of file QVectorI.hh.
Referenced by Initialize(), operator=(), operator[](), QVectorI(), Resize(), and ~QVectorI().
|
private |
size of the array
Definition at line 57 of file QVectorI.hh.
Referenced by Initialize(), operator=(), operator[](), QVectorI(), Resize(), Size(), and ~QVectorI().