Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QV4::BitVector Class Reference

#include <qv4util_p.h>

+ Collaboration diagram for QV4::BitVector:

Public Member Functions

 BitVector (int size=0, bool value=false)
 
void clear ()
 
void reserve (int size)
 
int size () const
 
void resize (int newSize)
 
void resize (int newSize, bool newValue)
 
void assign (int newSize, bool value)
 
int findNext (int start, bool value, bool wrapAround) const
 
bool at (int idx) const
 
void setBit (int idx)
 
void clearBit (int idx)
 

Detailed Description

Definition at line 28 of file qv4util_p.h.

Constructor & Destructor Documentation

◆ BitVector()

QV4::BitVector::BitVector ( int size = 0,
bool value = false )
inline

Definition at line 33 of file qv4util_p.h.

Member Function Documentation

◆ assign()

void QV4::BitVector::assign ( int newSize,
bool value )
inline

Definition at line 55 of file qv4util_p.h.

◆ at()

bool QV4::BitVector::at ( int idx) const
inline

Definition at line 84 of file qv4util_p.h.

◆ clear()

void QV4::BitVector::clear ( )
inline

Definition at line 37 of file qv4util_p.h.

◆ clearBit()

void QV4::BitVector::clearBit ( int idx)
inline

Definition at line 90 of file qv4util_p.h.

◆ findNext()

int QV4::BitVector::findNext ( int start,
bool value,
bool wrapAround ) const
inline

Definition at line 58 of file qv4util_p.h.

References pos, Q_ASSERT, qMin(), and size().

+ Here is the call graph for this function:

◆ reserve()

void QV4::BitVector::reserve ( int size)
inline

Definition at line 40 of file qv4util_p.h.

◆ resize() [1/2]

void QV4::BitVector::resize ( int newSize)
inline

Definition at line 49 of file qv4util_p.h.

◆ resize() [2/2]

void QV4::BitVector::resize ( int newSize,
bool newValue )
inline

Definition at line 52 of file qv4util_p.h.

◆ setBit()

void QV4::BitVector::setBit ( int idx)
inline

Definition at line 87 of file qv4util_p.h.

◆ size()

int QV4::BitVector::size ( ) const
inline

Definition at line 43 of file qv4util_p.h.

References Q_ASSERT.

Referenced by findNext().

+ Here is the caller graph for this function:

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