LLVM API Documentation
Store a vector of values using a specific number of bits for each value. Both signed and unsigned types can be used, e.g. More...
#include <PackedVector.h>
Classes | |
class | reference |
Public Member Functions | |
PackedVector () | |
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 |
const PackedVector & | operator= (const PackedVector &RHS) |
PackedVector & | operator|= (const PackedVector &RHS) |
void | swap (PackedVector &RHS) |
Store a vector of values using a specific number of bits for each value. Both signed and unsigned types can be used, e.g.
PackedVector<signed, 2> vec;
will create a vector accepting values -2, -1, 0, 1. Any other value will hit an assertion.
Definition at line 75 of file PackedVector.h.
llvm::PackedVector< T, BitNum, BitVectorTy >::PackedVector | ( | ) | [inline] |
Definition at line 99 of file PackedVector.h.
llvm::PackedVector< T, BitNum, BitVectorTy >::PackedVector | ( | unsigned | size | ) | [inline, explicit] |
Definition at line 100 of file PackedVector.h.
void llvm::PackedVector< T, BitNum, BitVectorTy >::clear | ( | ) | [inline] |
Definition at line 106 of file PackedVector.h.
bool llvm::PackedVector< T, BitNum, BitVectorTy >::empty | ( | ) | const [inline] |
Definition at line 102 of file PackedVector.h.
bool llvm::PackedVector< T, BitNum, BitVectorTy >::operator!= | ( | const PackedVector< T, BitNum, BitVectorTy > & | RHS | ) | const [inline] |
Definition at line 134 of file PackedVector.h.
const PackedVector& llvm::PackedVector< T, BitNum, BitVectorTy >::operator= | ( | const PackedVector< T, BitNum, BitVectorTy > & | RHS | ) | [inline] |
Definition at line 138 of file PackedVector.h.
bool llvm::PackedVector< T, BitNum, BitVectorTy >::operator== | ( | const PackedVector< T, BitNum, BitVectorTy > & | RHS | ) | const [inline] |
Definition at line 130 of file PackedVector.h.
reference llvm::PackedVector< T, BitNum, BitVectorTy >::operator[] | ( | unsigned | Idx | ) | [inline] |
Definition at line 122 of file PackedVector.h.
T llvm::PackedVector< T, BitNum, BitVectorTy >::operator[] | ( | unsigned | Idx | ) | const [inline] |
Definition at line 126 of file PackedVector.h.
PackedVector& llvm::PackedVector< T, BitNum, BitVectorTy >::operator|= | ( | const PackedVector< T, BitNum, BitVectorTy > & | RHS | ) | [inline] |
Definition at line 143 of file PackedVector.h.
void llvm::PackedVector< T, BitNum, BitVectorTy >::push_back | ( | T | val | ) | [inline] |
Definition at line 117 of file PackedVector.h.
References llvm::PackedVector< T, BitNum, BitVectorTy >::resize(), and llvm::PackedVector< T, BitNum, BitVectorTy >::size().
void llvm::PackedVector< T, BitNum, BitVectorTy >::reserve | ( | unsigned | N | ) | [inline] |
Definition at line 110 of file PackedVector.h.
PackedVector& llvm::PackedVector< T, BitNum, BitVectorTy >::reset | ( | ) | [inline] |
Definition at line 112 of file PackedVector.h.
void llvm::PackedVector< T, BitNum, BitVectorTy >::resize | ( | unsigned | N | ) | [inline] |
Definition at line 108 of file PackedVector.h.
Referenced by llvm::PackedVector< T, BitNum, BitVectorTy >::push_back().
unsigned llvm::PackedVector< T, BitNum, BitVectorTy >::size | ( | ) | const [inline] |
Definition at line 104 of file PackedVector.h.
Referenced by llvm::PackedVector< T, BitNum, BitVectorTy >::push_back().
void llvm::PackedVector< T, BitNum, BitVectorTy >::swap | ( | PackedVector< T, BitNum, BitVectorTy > & | RHS | ) | [inline] |
Definition at line 148 of file PackedVector.h.