LLVM: llvm::TinyPtrVector< EltTy > Class Template Reference (original) (raw)

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 "[llvm/ADT/TinyPtrVector.h](TinyPtrVector%5F8h%5Fsource.html)"

Public Types
using VecTy = SmallVector< EltTy, 4 >
using value_type = typename VecTy::value_type
using PtrUnion = PointerUnion< EltTy, VecTy * >
using iterator = EltTy *
using const_iterator = const EltTy *
using reverse_iterator = std::reverse_iterator< iterator >
using const_reverse_iterator = std::reverse_iterator< const_iterator >
Public Member Functions
TinyPtrVector ()=default
~TinyPtrVector ()
TinyPtrVector (const TinyPtrVector &RHS)
TinyPtrVector & operator= (const TinyPtrVector &RHS)
TinyPtrVector (TinyPtrVector &&RHS)
TinyPtrVector & operator= (TinyPtrVector &&RHS)
TinyPtrVector (std::initializer_list< EltTy > IL)
TinyPtrVector (ArrayRef< EltTy > Elts)
Constructor from an ArrayRef.
TinyPtrVector (size_t Count, EltTy Value)
operator ArrayRef< EltTy > () const
operator MutableArrayRef< EltTy > ()
template<typename U , std::enable_if_t< std::is_convertible< ArrayRef< EltTy >, ArrayRef< U > >::value, bool > = false>
operator ArrayRef< U > () const
bool empty () const
unsigned size () const
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
reverse_iterator rbegin ()
reverse_iterator rend ()
const_reverse_iterator rbegin () const
const_reverse_iterator rend () 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)

template
class llvm::TinyPtrVector< EltTy >

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 29 of file TinyPtrVector.h.

const_iterator

template

const_reverse_iterator

template

iterator

template

PtrUnion

template

reverse_iterator

template

value_type

template

VecTy

template

template

~TinyPtrVector()

template

TinyPtrVector() [2/6]

template

TinyPtrVector() [3/6]

template

TinyPtrVector() [4/6]

template

TinyPtrVector() [5/6]

template

Constructor from an ArrayRef.

This also is a constructor for individual array elements due to the single element constructor for ArrayRef.

Definition at line 123 of file TinyPtrVector.h.

TinyPtrVector() [6/6]

template

back()

template

begin() [1/2]

template

begin() [2/2]

template

clear()

template

empty()

template

end() [1/2]

template

end() [2/2]

template

erase() [1/2]

template

erase() [2/2]

template

front()

template

insert() [1/2]

template

insert() [2/2]

template

template<typename ItTy >

operator ArrayRef< EltTy >()

template

operator ArrayRef< U >()

template

template<typename U , std::enable_if_t< std::is_convertible< ArrayRef< EltTy >, ArrayRef< U > >::value, bool > = false>

operator MutableArrayRef< EltTy >()

template

operator=() [1/2]

template

operator=() [2/2]

template

operator[]()

template

pop_back()

template

push_back()

template

rbegin() [1/2]

template

rbegin() [2/2]

template

rend() [1/2]

template

rend() [2/2]

template

size()

template


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