clang 20.0.0git
Public Member Functions | List of all members
clang::BitsPacker Class Reference

A simple helper class to pack several bits in order into (a) 32 bit integer(s). More...

#include "clang/Serialization/ASTWriter.h"

Public Member Functions

 BitsPacker ()=default
 
 BitsPacker (const BitsPacker &)=delete
 
 BitsPacker (BitsPacker &&)=delete
 
BitsPacker operator= (const BitsPacker &)=delete
 
BitsPacker operator= (BitsPacker &&)=delete
 
 ~BitsPacker ()=default
 
bool canWriteNextNBits (uint32_t BitsWidth) const
 
void reset (uint32_t Value)
 
void addBit (bool Value)
 
void addBits (uint32_t Value, uint32_t BitsWidth)
 
 operator uint32_t ()
 

Detailed Description

A simple helper class to pack several bits in order into (a) 32 bit integer(s).

Definition at line 1003 of file ASTWriter.h.

Constructor & Destructor Documentation

◆ BitsPacker() [1/3]

clang::BitsPacker::BitsPacker ( )
default

◆ BitsPacker() [2/3]

clang::BitsPacker::BitsPacker ( const BitsPacker )
delete

◆ BitsPacker() [3/3]

clang::BitsPacker::BitsPacker ( BitsPacker &&  )
delete

◆ ~BitsPacker()

clang::BitsPacker::~BitsPacker ( )
default

Member Function Documentation

◆ addBit()

void clang::BitsPacker::addBit ( bool  Value)
inline

◆ addBits()

void clang::BitsPacker::addBits ( uint32_t  Value,
uint32_t  BitsWidth 
)
inline

◆ canWriteNextNBits()

bool clang::BitsPacker::canWriteNextNBits ( uint32_t  BitsWidth) const
inline

Definition at line 1014 of file ASTWriter.h.

Referenced by addBits().

◆ operator uint32_t()

clang::BitsPacker::operator uint32_t ( )
inline

Definition at line 1034 of file ASTWriter.h.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

BitsPacker clang::BitsPacker::operator= ( const BitsPacker )
delete

◆ reset()

void clang::BitsPacker::reset ( uint32_t  Value)
inline

Definition at line 1018 of file ASTWriter.h.


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