LLVM API Documentation

Classes | Public Member Functions
llvm::PackedVector< T, BitNum, BitVectorTy > Class Template Reference

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>

Inheritance diagram for llvm::PackedVector< T, BitNum, BitVectorTy >:
Inheritance graph
[legend]
Collaboration diagram for llvm::PackedVector< T, BitNum, BitVectorTy >:
Collaboration graph
[legend]

List of all members.

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)
PackedVectorreset ()
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 PackedVectoroperator= (const PackedVector &RHS)
PackedVectoroperator|= (const PackedVector &RHS)
void swap (PackedVector &RHS)

Detailed Description

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.

   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.


Constructor & Destructor Documentation

template<typename T , unsigned BitNum, typename BitVectorTy = BitVector>
llvm::PackedVector< T, BitNum, BitVectorTy >::PackedVector ( ) [inline]

Definition at line 99 of file PackedVector.h.

template<typename T , unsigned BitNum, typename BitVectorTy = BitVector>
llvm::PackedVector< T, BitNum, BitVectorTy >::PackedVector ( unsigned  size) [inline, explicit]

Definition at line 100 of file PackedVector.h.


Member Function Documentation

template<typename T , unsigned BitNum, typename BitVectorTy = BitVector>
void llvm::PackedVector< T, BitNum, BitVectorTy >::clear ( ) [inline]

Definition at line 106 of file PackedVector.h.

template<typename T , unsigned BitNum, typename BitVectorTy = BitVector>
bool llvm::PackedVector< T, BitNum, BitVectorTy >::empty ( ) const [inline]

Definition at line 102 of file PackedVector.h.

template<typename T , unsigned BitNum, typename BitVectorTy = BitVector>
bool llvm::PackedVector< T, BitNum, BitVectorTy >::operator!= ( const PackedVector< T, BitNum, BitVectorTy > &  RHS) const [inline]

Definition at line 134 of file PackedVector.h.

template<typename T , unsigned BitNum, typename BitVectorTy = BitVector>
const PackedVector& llvm::PackedVector< T, BitNum, BitVectorTy >::operator= ( const PackedVector< T, BitNum, BitVectorTy > &  RHS) [inline]

Definition at line 138 of file PackedVector.h.

template<typename T , unsigned BitNum, typename BitVectorTy = BitVector>
bool llvm::PackedVector< T, BitNum, BitVectorTy >::operator== ( const PackedVector< T, BitNum, BitVectorTy > &  RHS) const [inline]

Definition at line 130 of file PackedVector.h.

template<typename T , unsigned BitNum, typename BitVectorTy = BitVector>
reference llvm::PackedVector< T, BitNum, BitVectorTy >::operator[] ( unsigned  Idx) [inline]

Definition at line 122 of file PackedVector.h.

template<typename T , unsigned BitNum, typename BitVectorTy = BitVector>
T llvm::PackedVector< T, BitNum, BitVectorTy >::operator[] ( unsigned  Idx) const [inline]

Definition at line 126 of file PackedVector.h.

template<typename T , unsigned BitNum, typename BitVectorTy = BitVector>
PackedVector& llvm::PackedVector< T, BitNum, BitVectorTy >::operator|= ( const PackedVector< T, BitNum, BitVectorTy > &  RHS) [inline]

Definition at line 143 of file PackedVector.h.

template<typename T , unsigned BitNum, typename BitVectorTy = BitVector>
void llvm::PackedVector< T, BitNum, BitVectorTy >::push_back ( T  val) [inline]
template<typename T , unsigned BitNum, typename BitVectorTy = BitVector>
void llvm::PackedVector< T, BitNum, BitVectorTy >::reserve ( unsigned  N) [inline]

Definition at line 110 of file PackedVector.h.

template<typename T , unsigned BitNum, typename BitVectorTy = BitVector>
PackedVector& llvm::PackedVector< T, BitNum, BitVectorTy >::reset ( ) [inline]

Definition at line 112 of file PackedVector.h.

template<typename T , unsigned BitNum, typename BitVectorTy = BitVector>
void llvm::PackedVector< T, BitNum, BitVectorTy >::resize ( unsigned  N) [inline]
template<typename T , unsigned BitNum, typename BitVectorTy = BitVector>
unsigned llvm::PackedVector< T, BitNum, BitVectorTy >::size ( ) const [inline]
template<typename T , unsigned BitNum, typename BitVectorTy = BitVector>
void llvm::PackedVector< T, BitNum, BitVectorTy >::swap ( PackedVector< T, BitNum, BitVectorTy > &  RHS) [inline]

Definition at line 148 of file PackedVector.h.


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