Store a vector of values using a specific number of bits for each value. Both signed and unsigned types can be used, e.g
Synopsis
Declared in <llvm/ADT/PackedVector.h>
template<
typename T,
unsigned int BitNum,
typename BitVectorTy = BitVector>
class PackedVector;
Description
PackedVector<signed, 2> vec;
will create a vector accepting values ‐2, ‐1, 0, 1. Any other value will hit an assertion.
Types
Name |
Description |
Proxy that reads and writes a single packed element by index. |
Member Functions
Name |
Description |
|
Constructors |
Remove all elements and release bit storage. |
|
Return true if the vector contains no elements. |
|
Subscript operators |
|
Bitwise‐or each packed bit with the corresponding bit in |
|
Append |
|
Access the underlying bit vector used for packed storage. |
|
Reserve bit capacity for at least |
|
Clear every packed bit without changing the element count. |
|
Change the number of packed elements to |
|
Return the number of packed elements. |
|
Return true if both vectors have identical packed bit patterns. |
|
Return true if the packed bit patterns differ. |
Created with MrDocs