Qt 4.8
|
The QBitRef class is an internal class, used with QBitArray. More...
#include <qbitarray.h>
Public Functions | |
operator bool () const | |
Returns the value referenced by the QBitRef. More... | |
bool | operator! () const |
QBitRef & | operator= (const QBitRef &val) |
Sets the value referenced by the QBitRef to that referenced by QBitRef v. More... | |
QBitRef & | operator= (bool val) |
Sets the value referenced by the QBitRef to v. More... | |
Private Functions | |
QBitRef (QBitArray &array, int idx) | |
Constructs a reference to element i in the QBitArray a. More... | |
Properties | |
QBitArray & | a |
int | i |
Friends | |
class | QBitArray |
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 148 of file qbitarray.h.
|
inlineprivate |
Constructs a reference to element i in the QBitArray a.
This is what QBitArray::operator[] constructs its return value with.
Definition at line 153 of file qbitarray.h.
|
inline |
Returns the value referenced by the QBitRef.
Definition at line 156 of file qbitarray.h.
|
inline |
Definition at line 157 of file qbitarray.h.
Sets the value referenced by the QBitRef to that referenced by QBitRef v.
Definition at line 158 of file qbitarray.h.
|
inline |
Sets the value referenced by the QBitRef to v.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 159 of file qbitarray.h.
Definition at line 154 of file qbitarray.h.
|
private |
Definition at line 151 of file qbitarray.h.
|
private |
Definition at line 152 of file qbitarray.h.