Diana Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
QVectorCView Class Reference

subview of an existing QVectorC, useful to operate on a QVectorC slice More...

Inheritance diagram for QVectorCView:
QObject

Public Member Functions

 QVectorCView (QVectorC &in, size_t start, size_t size)
 constructor More...
 
virtual ~QVectorCView ()
 destructor: do not destroy the input QVectorC More...
 
QVectorCGetVectorC () const
 Get subview QVector. More...
 
void Clear ()
 Clear is not implemented. 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 QObjectDuplicate () 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

 QVectorCView ()
 
const QVectorCViewoperator= (const QVectorCView &other)
 operator= More...
 
 QObjectDef (QVectorCView, 1)
 

Private Attributes

QVectorCfVectorC
 

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

subview of an existing QVectorC, useful to operate on a QVectorC slice

Author
Carlo Mancini

All the QVectorc methods of the member QVectorC are available except Resize, Append and in general all the methods changing the size. Once a QVectorCView is created the member QVectorC keep the original size and operate on the same memory of the input QVectorC.
For const input QVector use QVectorConstView

Definition at line 18 of file QVectorCView.hh.

Constructor & Destructor Documentation

◆ QVectorCView() [1/2]

Q_BEGIN_NAMESPACE QVectorCView::QVectorCView ( QVectorC in,
size_t  start,
size_t  size 
)

constructor

Parameters
inQVectorC this view refers to
startstart index of the view
sizenumber of the view elements

Definition at line 9 of file QVectorCView.cc.

References DianaThrow, fVectorC, and QVectorC::Size().

◆ ~QVectorCView()

QVectorCView::~QVectorCView ( )
virtual

destructor: do not destroy the input QVectorC

Definition at line 17 of file QVectorCView.cc.

References fVectorC.

◆ QVectorCView() [2/2]

QVectorCView::QVectorCView ( )
inlineprivate

Definition at line 37 of file QVectorCView.hh.

Member Function Documentation

◆ Clear()

void QVectorCView::Clear ( )
inlinevirtual

Clear is not implemented.

Implements QObject.

Definition at line 35 of file QVectorCView.hh.

◆ GetVectorC()

QVectorC& QVectorCView::GetVectorC ( ) const
inline

Get subview QVector.

Definition at line 32 of file QVectorCView.hh.

References fVectorC.

◆ operator=()

const QVectorCView& QVectorCView::operator= ( const QVectorCView other)
inlineprivate

operator=

Definition at line 40 of file QVectorCView.hh.

◆ QObjectDef()

QVectorCView::QObjectDef ( QVectorCView  ,
 
)
private

Member Data Documentation

◆ fVectorC

QVectorC* QVectorCView::fVectorC
private

Definition at line 42 of file QVectorCView.hh.

Referenced by GetVectorC(), QVectorCView(), and ~QVectorCView().


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