clang 22.0.0git
clang::BitsUnpacker Class Reference

A simple helper class to unpack an integer to bits and consuming the bits in order. More...

#include "clang/Serialization/ASTReader.h"

Public Member Functions

 BitsUnpacker (uint32_t V)
 BitsUnpacker (const BitsUnpacker &)=delete
 BitsUnpacker (BitsUnpacker &&)=delete
BitsUnpacker operator= (const BitsUnpacker &)=delete
BitsUnpacker operator= (BitsUnpacker &&)=delete
 ~BitsUnpacker ()=default
void updateValue (uint32_t V)
void advance (uint32_t BitsWidth)
bool getNextBit ()
uint32_t getNextBits (uint32_t Width)
bool canGetNextNBits (uint32_t Width) const

Detailed Description

A simple helper class to unpack an integer to bits and consuming the bits in order.

Definition at line 2662 of file ASTReader.h.

Constructor & Destructor Documentation

◆ BitsUnpacker() [1/3]

clang::BitsUnpacker::BitsUnpacker ( uint32_t V)
inline

Definition at line 2666 of file ASTReader.h.

References updateValue(), and V.

Referenced by BitsUnpacker(), BitsUnpacker(), operator=(), and operator=().

◆ BitsUnpacker() [2/3]

clang::BitsUnpacker::BitsUnpacker ( const BitsUnpacker & )
delete

References BitsUnpacker().

◆ BitsUnpacker() [3/3]

clang::BitsUnpacker::BitsUnpacker ( BitsUnpacker && )
delete

References BitsUnpacker().

◆ ~BitsUnpacker()

clang::BitsUnpacker::~BitsUnpacker ( )
default

Member Function Documentation

◆ advance()

void clang::BitsUnpacker::advance ( uint32_t BitsWidth)
inline

Definition at line 2678 of file ASTReader.h.

◆ canGetNextNBits()

bool clang::BitsUnpacker::canGetNextNBits ( uint32_t Width) const
inline

Definition at line 2693 of file ASTReader.h.

◆ getNextBit()

◆ getNextBits()

◆ operator=() [1/2]

BitsUnpacker clang::BitsUnpacker::operator= ( BitsUnpacker && )
delete

References BitsUnpacker().

◆ operator=() [2/2]

BitsUnpacker clang::BitsUnpacker::operator= ( const BitsUnpacker & )
delete

References BitsUnpacker().

◆ updateValue()

void clang::BitsUnpacker::updateValue ( uint32_t V)
inline

Definition at line 2673 of file ASTReader.h.

References V.

Referenced by BitsUnpacker().


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