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

bool wrapped into a QObject More...

Inheritance diagram for QBool:
QObject

Public Member Functions

void Clear ()
 clear members More...
 
 QBool ()
 
 QBool (const bool value)
 
 QBool (const QBool &bt)
 
const QBooloperator= (const bool value)
 
bool operator== (const bool value) const
 
 operator bool () const
 
void Dump (std::ostream &ob) const
 print content to stream (intended for screen print or log files) 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 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 (QBool, 2)
 

Private Attributes

bool fValue
 

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

bool wrapped into a QObject

Author
Marco Vignati
Examples
ScanEvents.C.

Definition at line 17 of file QBool.hh.

Constructor & Destructor Documentation

◆ QBool() [1/3]

QBool::QBool ( )
inline

@ brief value

Definition at line 29 of file QBool.hh.

References Clear().

◆ QBool() [2/3]

QBool::QBool ( const bool  value)
inline

Definition at line 31 of file QBool.hh.

References operator=().

◆ QBool() [3/3]

QBool::QBool ( const QBool bt)
inline

Definition at line 33 of file QBool.hh.

Member Function Documentation

◆ Clear()

void QBool::Clear ( )
inlinevirtual

clear members

Implements QObject.

Definition at line 21 of file QBool.hh.

References fValue, and Q_BOOL_DEFAULT.

Referenced by QBool().

◆ Dump()

void QBool::Dump ( std::ostream &  o) const
virtual

print content to stream (intended for screen print or log files)

Reimplemented from QObject.

Definition at line 20 of file QBool.cc.

References fValue, QObject::IsValid(), and Q_BOOL_DEFAULT.

◆ operator bool()

QBool::operator bool ( ) const
inline

Definition at line 39 of file QBool.hh.

References fValue, and QObject::IsValid().

◆ operator=()

Q_BEGIN_NAMESPACE const QBool & QBool::operator= ( const bool  value)

Definition at line 7 of file QBool.cc.

References fValue, and QObject::Validate().

Referenced by QBool().

◆ operator==()

bool QBool::operator== ( const bool  value) const

Definition at line 15 of file QBool.cc.

References fValue, and QObject::IsValid().

◆ QObjectDef()

QBool::QObjectDef ( QBool  ,
 
)
private

Member Data Documentation

◆ fValue

bool QBool::fValue
private

Definition at line 44 of file QBool.hh.

Referenced by Clear(), Dump(), operator bool(), operator=(), and operator==().


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