LLVM API Documentation
#include <SmallVector.h>
Public Member Functions | |
void | push_back (const T &Elt) |
void | pop_back () |
![]() | |
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 |
![]() | |
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 |
Protected Member Functions | |
SmallVectorTemplateBase (size_t Size) | |
void | grow (size_t MinSize=0) |
![]() | |
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 |
![]() | |
SmallVectorBase (void *FirstEl, size_t Size) | |
void | grow_pod (void *FirstEl, size_t MinSizeInBytes, size_t TSize) |
Static Protected Member Functions | |
static void | destroy_range (T *, T *) |
template<typename It1 , typename It2 > | |
static It2 | move (It1 I, It1 E, It2 Dest) |
template<typename It1 , typename It2 > | |
static It2 | move_backward (It1 I, It1 E, It2 Dest) |
template<typename It1 , typename It2 > | |
static void | uninitialized_move (It1 I, It1 E, It2 Dest) |
template<typename It1 , typename It2 > | |
static void | uninitialized_copy (It1 I, It1 E, It2 Dest) |
template<typename T1 , typename T2 > | |
static void | uninitialized_copy (T1 *I, T1 *E, T2 *Dest) |
Additional Inherited Members | |
![]() | |
typedef size_t | size_type |
typedef ptrdiff_t | difference_type |
typedef T | value_type |
typedef T * | iterator |
typedef const T * | const_iterator |
typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
typedef std::reverse_iterator < iterator > | reverse_iterator |
typedef T & | reference |
typedef const T & | const_reference |
typedef T * | pointer |
typedef const T * | const_pointer |
![]() | |
void * | BeginX |
void * | EndX |
void * | CapacityX |
SmallVectorTemplateBase<isPodLike = true> - This is where we put method implementations that are designed to work with POD-like T's.
Definition at line 296 of file SmallVector.h.
|
inlineprotected |
Definition at line 298 of file SmallVector.h.
|
inlinestaticprotected |
Definition at line 301 of file SmallVector.h.
|
inlineprotected |
grow - double the size of the allocated memory, guaranteeing space for at least one more element or MinSize if specified.
Definition at line 346 of file SmallVector.h.
References llvm::SmallVectorTemplateCommon< T >::grow_pod().
|
inlinestaticprotected |
move - Use move-assignment to move the range [I, E) onto the objects starting with "Dest". For PODs, this is just memcpy.
Definition at line 306 of file SmallVector.h.
|
inlinestaticprotected |
move_backward - Use move-assignment to move the range [I, E) onto the objects ending at "Dest", moving objects in reverse order.
Definition at line 314 of file SmallVector.h.
|
inline |
Definition at line 361 of file SmallVector.h.
References llvm::SmallVectorTemplateCommon< T >::end(), and llvm::SmallVectorTemplateCommon< T >::setEnd().
|
inline |
Definition at line 350 of file SmallVector.h.
References llvm::SmallVectorTemplateCommon< T >::end(), llvm::SmallVectorTemplateBase< T, isPodLike >::grow(), llvm::Intrinsic::memcpy, and llvm::SmallVectorTemplateCommon< T >::setEnd().
|
inlinestaticprotected |
uninitialized_copy - Copy the range [I, E) onto the uninitialized memory starting with "Dest", constructing elements into it as needed.
Definition at line 329 of file SmallVector.h.
|
inlinestaticprotected |
uninitialized_copy - Copy the range [I, E) onto the uninitialized memory starting with "Dest", constructing elements into it as needed.
Definition at line 337 of file SmallVector.h.
References llvm::Intrinsic::memcpy.
|
inlinestaticprotected |
uninitialized_move - Move the range [I, E) onto the uninitialized memory starting with "Dest", constructing elements into it as needed.
Definition at line 321 of file SmallVector.h.
References llvm::SmallVectorTemplateBase< T, isPodLike >::uninitialized_copy().