Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QBitRef Class Reference

\inmodule QtCore \reentrant More...

#include <qbitarray.h>

+ Collaboration diagram for QBitRef:

Public Member Functions

 operator bool () const
 Returns the value referenced by the QBitRef.
 
bool operator! () const
 
QBitRefoperator= (const QBitRef &val)
 Sets the value referenced by the QBitRef to that referenced by QBitRef v.
 
QBitRefoperator= (bool val)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Sets the value referenced by the QBitRef to v.
 

Friends

class QBitArray
 [3]
 

Detailed Description

\inmodule QtCore \reentrant

The QBitRef class is an internal class, used with QBitArray.

The QBitRef is required by the indexing [] operator on bit arrays. It is not for use in any other context.

Definition at line 107 of file qbitarray.h.

Member Function Documentation

◆ operator bool()

QBitRef::operator bool ( ) const
inline

Returns the value referenced by the QBitRef.

Definition at line 116 of file qbitarray.h.

References i, and QBitArray::testBit().

+ Here is the call graph for this function:

◆ operator!()

bool QBitRef::operator! ( ) const
inline

Definition at line 117 of file qbitarray.h.

References i.

◆ operator=() [1/2]

QBitRef & QBitRef::operator= ( bool  val)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Sets the value referenced by the QBitRef to v.

Definition at line 119 of file qbitarray.h.

References i.

◆ operator=() [2/2]

QBitRef & QBitRef::operator= ( const QBitRef val)
inline

Sets the value referenced by the QBitRef to that referenced by QBitRef v.

Definition at line 118 of file qbitarray.h.

References i.

Friends And Related Symbol Documentation

◆ QBitArray

friend class QBitArray
friend

[3]

[4]

[5]

Definition at line 113 of file qbitarray.h.


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