llvm::SmallVectorImpl< T > Class Template Reference
SmallVectorImpl - This class consists of common code factored out of the SmallVector class to reduce code duplication based on the SmallVector 'N' template parameter.
More...
#include <SmallVector.h>
List of all members.
Public Types |
typedef SuperClass::iterator | iterator |
typedef SuperClass::size_type | size_type |
Public Member Functions |
| SmallVectorImpl (unsigned N) |
| ~SmallVectorImpl () |
void | clear () |
void | resize (unsigned N) |
void | resize (unsigned N, const T &NV) |
void | reserve (unsigned N) |
void | push_back (const T &Elt) |
void | pop_back () |
T | pop_back_val () |
void | swap (SmallVectorImpl &RHS) |
template<typename in_iter > |
void | append (in_iter in_start, in_iter in_end) |
| append - Add the specified range to the end of the SmallVector.
|
void | append (size_type NumInputs, const T &Elt) |
| append - Add the specified range to the end of the SmallVector.
|
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) |
const SmallVectorImpl & | operator= (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) |
| set_size - Set the array size to
|
Private Types |
typedef
SmallVectorTemplateBase< T,
isPodLike< T >::value > | SuperClass |
Private Member Functions |
| SmallVectorImpl (const SmallVectorImpl &) |
Static Private Member Functions |
static void | construct_range (T *S, T *E, const T &Elt) |
Detailed Description
template<typename T>
class llvm::SmallVectorImpl< T >
SmallVectorImpl - This class consists of common code factored out of the SmallVector class to reduce code duplication based on the SmallVector 'N' template parameter.
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
append - Add the specified range to the end of the SmallVector.
template<typename T>
template<typename in_iter >
append - Add the specified range to the end of the SmallVector.
template<typename T>
static void llvm::SmallVectorImpl< T >::construct_range |
( |
T * |
S, |
|
|
T * |
E, |
|
|
const T & |
Elt | |
|
) |
| | [inline, static, private] |
template<typename T>
template<typename ItTy >
set_size - Set the array size to
- N, which the current array must have enough capacity for.
This does not construct or destroy any elements in the vector.
Clients can use this in conjunction with capacity() to write past the end of the buffer when they know that more elements are available, and only update the size later. This avoids the cost of value initializing elements which will only be overwritten.
The documentation for this class was generated from the following file: