LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
llvm::SmallVector< T, N > Class Template Reference

#include <SmallVector.h>

Inherits llvm::SmallVectorImpl< T >.

Collaboration diagram for llvm::SmallVector< T, N >:
Collaboration graph
[legend]

Public Member Functions

 SmallVector ()
 
 SmallVector (unsigned Size, const T &Value=T())
 
template<typename ItTy >
 SmallVector (ItTy S, ItTy E)
 
 SmallVector (const SmallVector &RHS)
 
const SmallVectoroperator= (const SmallVector &RHS)
 
- Public Member Functions inherited from llvm::SmallVectorImpl< T >
 ~SmallVectorImpl ()
 
void clear ()
 
void resize (unsigned N)
 
void resize (unsigned N, const T &NV)
 
void reserve (unsigned N)
 
T LLVM_ATTRIBUTE_UNUSED_RESULT pop_back_val ()
 
void swap (SmallVectorImpl &RHS)
 
template<typename in_iter >
void append (in_iter in_start, in_iter in_end)
 
void append (size_type NumInputs, const T &Elt)
 
void assign (unsigned NumElts, const T &Elt)
 
iterator erase (iterator I)
 
iterator erase (iterator S, iterator E)
 
iterator insert (iterator I, const T &Elt)
 
iterator insert (iterator I, size_type NumToInsert, const T &Elt)
 
template<typename ItTy >
iterator insert (iterator I, ItTy From, ItTy To)
 
SmallVectorImploperator= (const SmallVectorImpl &RHS)
 
bool operator== (const SmallVectorImpl &RHS) const
 
bool operator!= (const SmallVectorImpl &RHS) const
 
bool operator< (const SmallVectorImpl &RHS) const
 
void set_size (unsigned N)
 
- Public Member Functions inherited from llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >
void push_back (const T &Elt)
 
void pop_back ()
 
- Public Member Functions inherited from llvm::SmallVectorTemplateCommon< T >
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
size_type size () const
 
size_type max_size () const
 
size_t capacity () const
 
pointer data ()
 data - Return a pointer to the vector's buffer, even if empty(). More...
 
const_pointer data () const
 data - Return a pointer to the vector's buffer, even if empty(). More...
 
reference operator[] (unsigned idx)
 
const_reference operator[] (unsigned idx) const
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
- Public Member Functions inherited from llvm::SmallVectorBase
size_t size_in_bytes () const
 size_in_bytes - This returns size()*sizeof(T). More...
 
size_t capacity_in_bytes () const
 capacity_in_bytes - This returns capacity()*sizeof(T). More...
 
bool LLVM_ATTRIBUTE_UNUSED_RESULT empty () const
 

Additional Inherited Members

- Public Types inherited from llvm::SmallVectorImpl< T >
typedef SuperClass::iterator iterator
 
typedef SuperClass::size_type size_type
 
- Public Types inherited from llvm::SmallVectorTemplateCommon< T >
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 
typedef T value_type
 
typedef Titerator
 
typedef const Tconst_iterator
 
typedef std::reverse_iterator
< const_iterator
const_reverse_iterator
 
typedef std::reverse_iterator
< iterator
reverse_iterator
 
typedef Treference
 
typedef const Tconst_reference
 
typedef Tpointer
 
typedef const Tconst_pointer
 
- Protected Member Functions inherited from llvm::SmallVectorImpl< T >
 SmallVectorImpl (unsigned N)
 
- Protected Member Functions inherited from llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >
 SmallVectorTemplateBase (size_t Size)
 
void grow (size_t MinSize=0)
 
- Protected Member Functions inherited from llvm::SmallVectorTemplateCommon< T >
 SmallVectorTemplateCommon (size_t Size)
 
void grow_pod (size_t MinSizeInBytes, size_t TSize)
 
bool isSmall () const
 
void resetToSmall ()
 resetToSmall - Put this vector in a state of being small. More...
 
void setEnd (T *P)
 
iterator capacity_ptr ()
 
const_iterator capacity_ptr () const
 
- Protected Member Functions inherited from llvm::SmallVectorBase
 SmallVectorBase (void *FirstEl, size_t Size)
 
void grow_pod (void *FirstEl, size_t MinSizeInBytes, size_t TSize)
 
- Static Protected Member Functions inherited from llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >
static void destroy_range (T *S, T *E)
 
static It2 move (It1 I, It1 E, It2 Dest)
 
static It2 move_backward (It1 I, It1 E, It2 Dest)
 
static void uninitialized_move (It1 I, It1 E, It2 Dest)
 
static void uninitialized_copy (It1 I, It1 E, It2 Dest)
 
- Protected Attributes inherited from llvm::SmallVectorBase
void * BeginX
 
void * EndX
 
void * CapacityX
 

Detailed Description

template<typename T, unsigned N>
class llvm::SmallVector< T, N >

SmallVector - This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small. It contains some number of elements in-place, which allows it to avoid heap allocation when the actual number of elements is below that threshold. This allows normal "small" cases to be fast without losing generality for large inputs.

Note that this does not attempt to be exception safe.

Definition at line 880 of file SmallVector.h.

Constructor & Destructor Documentation

template<typename T, unsigned N>
llvm::SmallVector< T, N >::SmallVector ( )
inline

Definition at line 884 of file SmallVector.h.

template<typename T, unsigned N>
llvm::SmallVector< T, N >::SmallVector ( unsigned  Size,
const T Value = T() 
)
inlineexplicit

Definition at line 887 of file SmallVector.h.

template<typename T, unsigned N>
template<typename ItTy >
llvm::SmallVector< T, N >::SmallVector ( ItTy  S,
ItTy  E 
)
inline

Definition at line 893 of file SmallVector.h.

template<typename T, unsigned N>
llvm::SmallVector< T, N >::SmallVector ( const SmallVector< T, N > &  RHS)
inline

Definition at line 897 of file SmallVector.h.

Member Function Documentation

template<typename T, unsigned N>
const SmallVector& llvm::SmallVector< T, N >::operator= ( const SmallVector< T, N > &  RHS)
inline

Definition at line 902 of file SmallVector.h.


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