|
LLVM
3.7.0
|
TinyPtrVector - This class is specialized for cases where there are normally 0 or 1 element in a vector, but is general enough to go beyond that when required. More...
#include <TinyPtrVector.h>
Public Types | |
| typedef llvm::SmallVector < EltTy, 4 > | VecTy |
| typedef VecTy::value_type | value_type |
| typedef llvm::PointerUnion < EltTy, VecTy * > | PtrUnion |
| typedef const EltTy * | const_iterator |
| typedef EltTy * | iterator |
Public Member Functions | |
| TinyPtrVector () | |
| ~TinyPtrVector () | |
| TinyPtrVector (const TinyPtrVector &RHS) | |
| TinyPtrVector & | operator= (const TinyPtrVector &RHS) |
| TinyPtrVector (TinyPtrVector &&RHS) | |
| TinyPtrVector & | operator= (TinyPtrVector &&RHS) |
| TinyPtrVector (ArrayRef< EltTy > Elts) | |
| Constructor from an ArrayRef. More... | |
| operator ArrayRef< EltTy > () const | |
| operator MutableArrayRef< EltTy > () | |
| bool | empty () const |
| unsigned | size () const |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| EltTy | operator[] (unsigned i) const |
| EltTy | front () const |
| EltTy | back () const |
| void | push_back (EltTy NewVal) |
| void | pop_back () |
| void | clear () |
| iterator | erase (iterator I) |
| iterator | erase (iterator S, iterator E) |
| iterator | insert (iterator I, const EltTy &Elt) |
| template<typename ItTy > | |
| iterator | insert (iterator I, ItTy From, ItTy To) |
TinyPtrVector - This class is specialized for cases where there are normally 0 or 1 element in a vector, but is general enough to go beyond that when required.
NOTE: This container doesn't allow you to store a null pointer into it.
Definition at line 26 of file TinyPtrVector.h.
| typedef const EltTy* llvm::TinyPtrVector< EltTy >::const_iterator |
Definition at line 145 of file TinyPtrVector.h.
| typedef EltTy* llvm::TinyPtrVector< EltTy >::iterator |
Definition at line 146 of file TinyPtrVector.h.
| typedef llvm::PointerUnion<EltTy, VecTy *> llvm::TinyPtrVector< EltTy >::PtrUnion |
Definition at line 30 of file TinyPtrVector.h.
| typedef VecTy::value_type llvm::TinyPtrVector< EltTy >::value_type |
Definition at line 29 of file TinyPtrVector.h.
| typedef llvm::SmallVector<EltTy, 4> llvm::TinyPtrVector< EltTy >::VecTy |
Definition at line 28 of file TinyPtrVector.h.
|
inline |
Definition at line 36 of file TinyPtrVector.h.
|
inline |
Definition at line 37 of file TinyPtrVector.h.
|
inline |
Definition at line 42 of file TinyPtrVector.h.
|
inline |
Definition at line 74 of file TinyPtrVector.h.
|
inlineexplicit |
Constructor from an ArrayRef.
This also is a constructor for individual array elements due to the single element constructor for ArrayRef.
Definition at line 106 of file TinyPtrVector.h.
|
inline |
Definition at line 189 of file TinyPtrVector.h.
Referenced by llvm::TinyPtrVector< llvm::BasicBlock * >::back().
|
inline |
Definition at line 148 of file TinyPtrVector.h.
Referenced by llvm::TinyPtrVector< llvm::BasicBlock * >::begin(), llvm::TinyPtrVector< llvm::BasicBlock * >::end(), llvm::TinyPtrVector< llvm::BasicBlock * >::erase(), and llvm::TinyPtrVector< llvm::BasicBlock * >::insert().
|
inline |
Definition at line 162 of file TinyPtrVector.h.
|
inline |
Definition at line 223 of file TinyPtrVector.h.
Referenced by llvm::TinyPtrVector< llvm::BasicBlock * >::operator=(), and llvm::LoadAndStorePromoter::run().
|
inline |
Definition at line 128 of file TinyPtrVector.h.
Referenced by llvm::TinyPtrVector< llvm::BasicBlock * >::back(), llvm::TinyPtrVector< llvm::BasicBlock * >::front(), llvm::TinyPtrVector< llvm::BasicBlock * >::operator=(), llvm::LoadAndStorePromoter::run(), and llvm::TinyPtrVector< llvm::BasicBlock * >::size().
|
inline |
Definition at line 155 of file TinyPtrVector.h.
Referenced by llvm::TinyPtrVector< llvm::BasicBlock * >::end(), llvm::TinyPtrVector< llvm::BasicBlock * >::erase(), and llvm::TinyPtrVector< llvm::BasicBlock * >::insert().
|
inline |
Definition at line 166 of file TinyPtrVector.h.
|
inline |
Definition at line 234 of file TinyPtrVector.h.
|
inline |
Definition at line 250 of file TinyPtrVector.h.
|
inline |
Definition at line 182 of file TinyPtrVector.h.
Referenced by llvm::TinyPtrVector< llvm::BasicBlock * >::front(), and llvm::TinyPtrVector< llvm::BasicBlock * >::operator=().
|
inline |
Definition at line 264 of file TinyPtrVector.h.
Referenced by llvm::TinyPtrVector< llvm::BasicBlock * >::insert().
|
inline |
Definition at line 283 of file TinyPtrVector.h.
|
inline |
Definition at line 111 of file TinyPtrVector.h.
|
inline |
Definition at line 120 of file TinyPtrVector.h.
|
inline |
Definition at line 46 of file TinyPtrVector.h.
|
inline |
Definition at line 77 of file TinyPtrVector.h.
|
inline |
Definition at line 170 of file TinyPtrVector.h.
|
inline |
Definition at line 215 of file TinyPtrVector.h.
|
inline |
Definition at line 196 of file TinyPtrVector.h.
Referenced by llvm::TinyPtrVector< llvm::BasicBlock * >::insert(), llvm::TinyPtrVector< llvm::BasicBlock * >::operator=(), and llvm::TinyPtrVector< llvm::BasicBlock * >::push_back().
|
inline |
Definition at line 137 of file TinyPtrVector.h.
Referenced by llvm::TinyPtrVector< llvm::BasicBlock * >::operator=(), llvm::LoadAndStorePromoter::run(), and llvm::TinyPtrVector< llvm::BasicBlock * >::size().
1.8.6