LLVM: llvm::PackedVector< T, BitNum, BitVectorTy (original) (raw)

Store a vector of values using a specific number of bits for each value. More...

#include "[llvm/ADT/PackedVector.h](PackedVector%5F8h%5Fsource.html)"

Public Member Functions
PackedVector ()=default
PackedVector (unsigned size)
bool empty () const
unsigned size () const
void clear ()
void resize (unsigned N)
void reserve (unsigned N)
PackedVector & reset ()
void push_back (T val)
reference operator[] (unsigned Idx)
T operator[] (unsigned Idx) const
bool operator== (const PackedVector &RHS) const
bool operator!= (const PackedVector &RHS) const
PackedVector & operator|= (const PackedVector &RHS)
const BitVectorTy & raw_bits () const
BitVectorTy & raw_bits ()

template<typename T, unsigned BitNum, typename BitVectorTy = BitVector>
class llvm::PackedVector< T, BitNum, BitVectorTy >

Store a vector of values using a specific number of bits for each value.

Both signed and unsigned types can be used, e.g

will create a vector accepting values -2, -1, 0, 1. Any other value will hit an assertion.

Definition at line 31 of file PackedVector.h.

template<typename T, unsigned BitNum, typename BitVectorTy = BitVector>

PackedVector() [2/2]

template<typename T, unsigned BitNum, typename BitVectorTy = BitVector>

clear()

template<typename T, unsigned BitNum, typename BitVectorTy = BitVector>

empty()

template<typename T, unsigned BitNum, typename BitVectorTy = BitVector>

operator!=()

template<typename T, unsigned BitNum, typename BitVectorTy = BitVector>

operator==()

template<typename T, unsigned BitNum, typename BitVectorTy = BitVector>

operator[]() [1/2]

template<typename T, unsigned BitNum, typename BitVectorTy = BitVector>

operator[]() [2/2]

template<typename T, unsigned BitNum, typename BitVectorTy = BitVector>

operator|=()

template<typename T, unsigned BitNum, typename BitVectorTy = BitVector>

push_back()

template<typename T, unsigned BitNum, typename BitVectorTy = BitVector>

raw_bits() [1/2]

template<typename T, unsigned BitNum, typename BitVectorTy = BitVector>

raw_bits() [2/2]

template<typename T, unsigned BitNum, typename BitVectorTy = BitVector>

reserve()

template<typename T, unsigned BitNum, typename BitVectorTy = BitVector>

reset()

template<typename T, unsigned BitNum, typename BitVectorTy = BitVector>

resize()

template<typename T, unsigned BitNum, typename BitVectorTy = BitVector>

size()

template<typename T, unsigned BitNum, typename BitVectorTy = BitVector>


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