clang API Documentation
#include <ASTVector.h>
Public Types | |
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 |
Public Member Functions | |
ASTVector () | |
ASTVector (ASTVector &&O) | |
ASTVector (const ASTContext &C, unsigned N) | |
ASTVector & | operator= (ASTVector &&RHS) |
~ASTVector () | |
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 |
bool | empty () const |
size_type | size () const |
reference | operator[] (unsigned idx) |
const_reference | operator[] (unsigned idx) const |
reference | front () |
const_reference | front () const |
reference | back () |
const_reference | back () const |
void | pop_back () |
T | pop_back_val () |
void | clear () |
pointer | data () |
data - Return a pointer to the vector's buffer, even if empty(). | |
const_pointer | data () const |
data - Return a pointer to the vector's buffer, even if empty(). | |
void | push_back (const_reference Elt, const ASTContext &C) |
void | reserve (const ASTContext &C, unsigned N) |
size_t | capacity () const |
template<typename in_iter > | |
void | append (const ASTContext &C, in_iter in_start, in_iter in_end) |
void | append (const ASTContext &C, size_type NumInputs, const T &Elt) |
iterator | insert (const ASTContext &C, iterator I, const T &Elt) |
iterator | insert (const ASTContext &C, iterator I, size_type NumToInsert, const T &Elt) |
template<typename ItTy > | |
iterator | insert (const ASTContext &C, iterator I, ItTy From, ItTy To) |
void | resize (const ASTContext &C, unsigned N, const T &NV) |
Static Public Member Functions | |
template<typename It1 , typename It2 > | |
static void | uninitialized_copy (It1 I, It1 E, It2 Dest) |
Protected Member Functions | |
bool | getTag () const |
void | setTag (bool B) |
const_iterator | capacity_ptr () const |
iterator | capacity_ptr () |
Definition at line 33 of file ASTVector.h.
typedef const T* clang::ASTVector< T >::const_iterator |
Definition at line 81 of file ASTVector.h.
typedef const T* clang::ASTVector< T >::const_pointer |
Definition at line 89 of file ASTVector.h.
typedef const T& clang::ASTVector< T >::const_reference |
Definition at line 87 of file ASTVector.h.
typedef std::reverse_iterator<const_iterator> clang::ASTVector< T >::const_reverse_iterator |
Definition at line 83 of file ASTVector.h.
typedef ptrdiff_t clang::ASTVector< T >::difference_type |
Definition at line 78 of file ASTVector.h.
typedef T* clang::ASTVector< T >::iterator |
Definition at line 80 of file ASTVector.h.
typedef T* clang::ASTVector< T >::pointer |
Definition at line 88 of file ASTVector.h.
typedef T& clang::ASTVector< T >::reference |
Definition at line 86 of file ASTVector.h.
typedef std::reverse_iterator<iterator> clang::ASTVector< T >::reverse_iterator |
Definition at line 84 of file ASTVector.h.
typedef size_t clang::ASTVector< T >::size_type |
Definition at line 77 of file ASTVector.h.
typedef T clang::ASTVector< T >::value_type |
Definition at line 79 of file ASTVector.h.
clang::ASTVector< T >::ASTVector | ( | ) | [inline] |
Definition at line 48 of file ASTVector.h.
clang::ASTVector< T >::ASTVector | ( | ASTVector< T > && | O | ) | [inline] |
Definition at line 50 of file ASTVector.h.
clang::ASTVector< T >::ASTVector | ( | const ASTContext & | C, |
unsigned | N | ||
) | [inline] |
Definition at line 56 of file ASTVector.h.
clang::ASTVector< T >::~ASTVector | ( | ) | [inline] |
Definition at line 70 of file ASTVector.h.
void clang::ASTVector< T >::append | ( | const ASTContext & | C, |
in_iter | in_start, | ||
in_iter | in_end | ||
) | [inline] |
append - Add the specified range to the end of the SmallVector.
Definition at line 180 of file ASTVector.h.
Referenced by clang::ASTVector< Stmt * >::insert().
void clang::ASTVector< T >::append | ( | const ASTContext & | C, |
size_type | NumInputs, | ||
const T & | Elt | ||
) | [inline] |
append - Add the specified range to the end of the SmallVector.
Definition at line 199 of file ASTVector.h.
reference clang::ASTVector< T >::back | ( | ) | [inline] |
Definition at line 122 of file ASTVector.h.
Referenced by clang::ASTVector< Stmt * >::insert(), and clang::ASTVector< Stmt * >::pop_back_val().
const_reference clang::ASTVector< T >::back | ( | ) | const [inline] |
Definition at line 125 of file ASTVector.h.
iterator clang::ASTVector< T >::begin | ( | ) | [inline] |
Definition at line 92 of file ASTVector.h.
Referenced by clang::InitListExpr::begin(), clang::ASTVector< Stmt * >::front(), clang::InitListExpr::getLocStart(), clang::ASTVector< Stmt * >::insert(), clang::ASTVector< Stmt * >::rend(), and clang::ASTVector< Stmt * >::resize().
const_iterator clang::ASTVector< T >::begin | ( | ) | const [inline] |
Definition at line 93 of file ASTVector.h.
size_t clang::ASTVector< T >::capacity | ( | ) | const [inline] |
capacity - Return the total number of elements in the currently allocated buffer.
Definition at line 175 of file ASTVector.h.
Referenced by clang::ASTVector< Stmt * >::resize().
const_iterator clang::ASTVector< T >::capacity_ptr | ( | ) | const [inline, protected] |
Definition at line 368 of file ASTVector.h.
Referenced by clang::ASTVector< Stmt * >::append(), clang::ASTVector< Stmt * >::capacity(), clang::ASTVector< Stmt * >::insert(), clang::ASTVector< Stmt * >::push_back(), and clang::ASTVector< Stmt * >::reserve().
iterator clang::ASTVector< T >::capacity_ptr | ( | ) | [inline, protected] |
Definition at line 371 of file ASTVector.h.
void clang::ASTVector< T >::clear | ( | ) | [inline] |
Definition at line 140 of file ASTVector.h.
pointer clang::ASTVector< T >::data | ( | ) | [inline] |
data - Return a pointer to the vector's buffer, even if empty().
Definition at line 148 of file ASTVector.h.
Referenced by clang::InitListExpr::getInits().
const_pointer clang::ASTVector< T >::data | ( | ) | const [inline] |
data - Return a pointer to the vector's buffer, even if empty().
Definition at line 153 of file ASTVector.h.
bool clang::ASTVector< T >::empty | ( | ) | const [inline] |
Definition at line 103 of file ASTVector.h.
Referenced by clang::InitListExpr::children().
iterator clang::ASTVector< T >::end | ( | ) | [inline] |
Definition at line 94 of file ASTVector.h.
Referenced by clang::ASTVector< Stmt * >::append(), clang::ASTVector< Stmt * >::back(), clang::InitListExpr::end(), clang::InitListExpr::getLocStart(), clang::InitListExpr::InitListExpr(), clang::ASTVector< Stmt * >::insert(), clang::ASTVector< Stmt * >::rbegin(), clang::ASTVector< Stmt * >::resize(), and clang::InitListExpr::updateInit().
const_iterator clang::ASTVector< T >::end | ( | ) | const [inline] |
Definition at line 95 of file ASTVector.h.
reference clang::ASTVector< T >::front | ( | ) | [inline] |
Definition at line 115 of file ASTVector.h.
const_reference clang::ASTVector< T >::front | ( | ) | const [inline] |
Definition at line 118 of file ASTVector.h.
bool clang::ASTVector< T >::getTag | ( | ) | const [inline, protected] |
Definition at line 43 of file ASTVector.h.
iterator clang::ASTVector< T >::insert | ( | const ASTContext & | C, |
iterator | I, | ||
const T & | Elt | ||
) | [inline] |
Definition at line 216 of file ASTVector.h.
Referenced by clang::InitListExpr::InitListExpr(), and clang::InitListExpr::updateInit().
iterator clang::ASTVector< T >::insert | ( | const ASTContext & | C, |
iterator | I, | ||
size_type | NumToInsert, | ||
const T & | Elt | ||
) | [inline] |
Definition at line 237 of file ASTVector.h.
iterator clang::ASTVector< T >::insert | ( | const ASTContext & | C, |
iterator | I, | ||
ItTy | From, | ||
ItTy | To | ||
) | [inline] |
Definition at line 286 of file ASTVector.h.
ASTVector& clang::ASTVector< T >::operator= | ( | ASTVector< T > && | RHS | ) | [inline] |
Definition at line 61 of file ASTVector.h.
reference clang::ASTVector< T >::operator[] | ( | unsigned | idx | ) | [inline] |
Definition at line 106 of file ASTVector.h.
const_reference clang::ASTVector< T >::operator[] | ( | unsigned | idx | ) | const [inline] |
Definition at line 110 of file ASTVector.h.
void clang::ASTVector< T >::pop_back | ( | ) | [inline] |
Definition at line 129 of file ASTVector.h.
Referenced by clang::ASTVector< Stmt * >::pop_back_val().
T clang::ASTVector< T >::pop_back_val | ( | ) | [inline] |
Definition at line 134 of file ASTVector.h.
void clang::ASTVector< T >::push_back | ( | const_reference | Elt, |
const ASTContext & | C | ||
) | [inline] |
Definition at line 157 of file ASTVector.h.
Referenced by clang::ASTVector< Stmt * >::insert().
reverse_iterator clang::ASTVector< T >::rbegin | ( | ) | [inline] |
Definition at line 98 of file ASTVector.h.
Referenced by clang::InitListExpr::getLocEnd(), and clang::InitListExpr::rbegin().
const_reverse_iterator clang::ASTVector< T >::rbegin | ( | ) | const [inline] |
Definition at line 99 of file ASTVector.h.
reverse_iterator clang::ASTVector< T >::rend | ( | ) | [inline] |
Definition at line 100 of file ASTVector.h.
Referenced by clang::InitListExpr::getLocEnd(), and clang::InitListExpr::rend().
const_reverse_iterator clang::ASTVector< T >::rend | ( | ) | const [inline] |
Definition at line 101 of file ASTVector.h.
void clang::ASTVector< T >::reserve | ( | const ASTContext & | C, |
unsigned | N | ||
) | [inline] |
Definition at line 168 of file ASTVector.h.
Referenced by clang::ASTVector< Stmt * >::ASTVector(), clang::ASTVector< Stmt * >::insert(), and clang::InitListExpr::reserveInits().
void clang::ASTVector< T >::resize | ( | const ASTContext & | C, |
unsigned | N, | ||
const T & | NV | ||
) | [inline] |
Definition at line 338 of file ASTVector.h.
Referenced by clang::InitListExpr::resizeInits().
void clang::ASTVector< T >::setTag | ( | bool | B | ) | [inline, protected] |
Definition at line 44 of file ASTVector.h.
size_type clang::ASTVector< T >::size | ( | ) | const [inline] |
Definition at line 104 of file ASTVector.h.
Referenced by clang::ASTVector< Stmt * >::append(), clang::InitListExpr::children(), clang::InitListExpr::getNumInits(), clang::ASTVector< Stmt * >::insert(), clang::InitListExpr::reserveInits(), clang::ASTVector< Stmt * >::resize(), and clang::InitListExpr::updateInit().
static void clang::ASTVector< T >::uninitialized_copy | ( | It1 | I, |
It1 | E, | ||
It2 | Dest | ||
) | [inline, static] |
uninitialized_copy - Copy the range [I, E) onto the uninitialized memory starting with "Dest", constructing elements into it as needed.
Definition at line 212 of file ASTVector.h.
Referenced by clang::ASTVector< Stmt * >::append(), clang::ASTVector< Stmt * >::insert(), and clang::ASTVector< Stmt * >::uninitialized_copy().