Diana Software
Public Member Functions | Private Member Functions | List of all members
QStdVector< T > Class Template Reference

std::vector QObject More...

Inheritance diagram for QStdVector< T >:
QObject

Public Member Functions

 QStdVector ()
 ctor More...
 
 QStdVector (const std::vector< T > &rhs)
 copy ctor More...
 
 QStdVector (const QStdVector< T > &rhs)
 copy ctor More...
 
void Clear ()
 clear members More...
 
QError WriteOnStream (std::ostream &o) const
 Write on stream (intended for file output) More...
 
QError ReadFromStream (std::istream &ob)
 Read from stream (intended for file input) More...
 
void Dump (std::ostream &o) const
 Write on stream (intended for screen output) More...
 
bool Fill (Diana::QObject *obj) const
 fill object of same type (like operator=) More...
 
QObjectDuplicate () const
 create object of same type More...
 
QStdVector< T > & operator= (const std::vector< T > &rhs)
 operator= More...
 
- Public Member Functions inherited from QObject
 QObject ()
 default constructor More...
 
virtual ~QObject ()
 destructor More...
 
QObjectoperator= (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 void Print () const
 print content on screen More...
 
void CopyBits (QObject *obj) const
 copy validity and temporary bits to another QObject More...
 
virtual void Draw (Option_t *option="")
 

Private Member Functions

 ClassDef (QStdVector, 2)
 

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 QObjectNew (const char *object)
 

Detailed Description

template<class T>
class QStdVector< T >

std::vector QObject

Author
Marco Vignati

This is a daughter of std::vector and QObject to be used when one want to save a std::vector in the QEvent of in files.

Definition at line 21 of file QStdVector.hh.

Constructor & Destructor Documentation

◆ QStdVector() [1/3]

template<class T >
QStdVector< T >::QStdVector ( )
inline

ctor

Definition at line 26 of file QStdVector.hh.

◆ QStdVector() [2/3]

template<class T >
QStdVector< T >::QStdVector ( const std::vector< T > &  rhs)
inline

copy ctor

Definition at line 29 of file QStdVector.hh.

References QStdVector< T >::operator=().

◆ QStdVector() [3/3]

template<class T >
QStdVector< T >::QStdVector ( const QStdVector< T > &  rhs)
inline

copy ctor

Definition at line 32 of file QStdVector.hh.

References QStdVector< T >::operator=().

Member Function Documentation

◆ ClassDef()

template<class T >
QStdVector< T >::ClassDef ( QStdVector< T >  ,
 
)
private

◆ Clear()

template<class T >
void QStdVector< T >::Clear ( )
inlinevirtual

clear members

Implements QObject.

Definition at line 35 of file QStdVector.hh.

◆ Dump()

template<class T >
void QStdVector< T >::Dump ( std::ostream &  o) const
inlinevirtual

Write on stream (intended for screen output)

Reimplemented from QObject.

Definition at line 99 of file QStdVector.hh.

References QStdVector< T >::WriteOnStream().

◆ Duplicate()

template<class T >
QObject* QStdVector< T >::Duplicate ( ) const
inlinevirtual

create object of same type

Implements QObject.

Definition at line 112 of file QStdVector.hh.

◆ Fill()

template<class T >
bool QStdVector< T >::Fill ( Diana::QObject *  obj) const
inline

fill object of same type (like operator=)

Definition at line 102 of file QStdVector.hh.

◆ operator=()

template<class T >
QStdVector<T>& QStdVector< T >::operator= ( const std::vector< T > &  rhs)
inline

operator=

Definition at line 118 of file QStdVector.hh.

References QObject::Validate().

Referenced by QStdVector< T >::QStdVector().

◆ ReadFromStream()

template<class T >
QError QStdVector< T >::ReadFromStream ( std::istream &  ob)
inlinevirtual

Read from stream (intended for file input)

Reimplemented from QObject.

Definition at line 54 of file QStdVector.hh.

References err, QERR_SIZE_NOT_MATCH, QERR_SUCCESS, and QERR_UNKNOWN_ERR.

◆ WriteOnStream()

template<class T >
QError QStdVector< T >::WriteOnStream ( std::ostream &  o) const
inlinevirtual

Write on stream (intended for file output)

Reimplemented from QObject.

Definition at line 41 of file QStdVector.hh.

References err, and QERR_SUCCESS.

Referenced by QStdVector< T >::Dump().


The documentation for this class was generated from the following file: