clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
clang::ASTVector< T > Class Template Reference

#include <ASTVector.h>

Inheritance diagram for clang::ASTVector< T >:
Inheritance graph
[legend]

List of all members.

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 (ASTContext &C, unsigned N=0)
 ~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 ()
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, ASTContext &C)
void reserve (ASTContext &C, unsigned N)
size_t capacity () const
template<typename in_iter >
void append (ASTContext &C, in_iter in_start, in_iter in_end)
void append (ASTContext &C, size_type NumInputs, const T &Elt)
iterator insert (ASTContext &C, iterator I, const T &Elt)
iterator insert (ASTContext &C, iterator I, size_type NumToInsert, const T &Elt)
template<typename ItTy >
iterator insert (ASTContext &C, iterator I, ItTy From, ItTy To)
void resize (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

iterator capacity_ptr ()

Detailed Description

template<typename T>
class clang::ASTVector< T >

Definition at line 55 of file ASTVector.h.


Member Typedef Documentation

template<typename T>
typedef const T* clang::ASTVector< T >::const_iterator

Definition at line 78 of file ASTVector.h.

template<typename T>
typedef const T* clang::ASTVector< T >::const_pointer

Definition at line 86 of file ASTVector.h.

template<typename T>
typedef const T& clang::ASTVector< T >::const_reference

Definition at line 84 of file ASTVector.h.

template<typename T>
typedef std::reverse_iterator<const_iterator> clang::ASTVector< T >::const_reverse_iterator

Definition at line 80 of file ASTVector.h.

template<typename T>
typedef ptrdiff_t clang::ASTVector< T >::difference_type

Definition at line 75 of file ASTVector.h.

template<typename T>
typedef T* clang::ASTVector< T >::iterator

Definition at line 77 of file ASTVector.h.

template<typename T>
typedef T* clang::ASTVector< T >::pointer

Definition at line 85 of file ASTVector.h.

template<typename T>
typedef T& clang::ASTVector< T >::reference

Definition at line 83 of file ASTVector.h.

template<typename T>
typedef std::reverse_iterator<iterator> clang::ASTVector< T >::reverse_iterator

Definition at line 81 of file ASTVector.h.

template<typename T>
typedef size_t clang::ASTVector< T >::size_type

Definition at line 74 of file ASTVector.h.

template<typename T>
typedef T clang::ASTVector< T >::value_type

Definition at line 76 of file ASTVector.h.


Constructor & Destructor Documentation

template<typename T>
clang::ASTVector< T >::ASTVector ( ASTContext C,
unsigned  N = 0 
) [inline, explicit]

Definition at line 62 of file ASTVector.h.

template<typename T>
clang::ASTVector< T >::~ASTVector ( ) [inline]

Definition at line 67 of file ASTVector.h.


Member Function Documentation

template<typename T>
template<typename in_iter >
void clang::ASTVector< T >::append ( 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 177 of file ASTVector.h.

Referenced by clang::ASTVector< Stmt * >::insert().

template<typename T>
void clang::ASTVector< T >::append ( ASTContext C,
size_type  NumInputs,
const T &  Elt 
) [inline]

append - Add the specified range to the end of the SmallVector.

Definition at line 196 of file ASTVector.h.

template<typename T>
reference clang::ASTVector< T >::back ( ) [inline]
template<typename T>
const_reference clang::ASTVector< T >::back ( ) const [inline]

Definition at line 122 of file ASTVector.h.

template<typename T>
iterator clang::ASTVector< T >::begin ( ) [inline]
template<typename T>
const_iterator clang::ASTVector< T >::begin ( ) const [inline]

Definition at line 90 of file ASTVector.h.

template<typename T>
size_t clang::ASTVector< T >::capacity ( ) const [inline]

capacity - Return the total number of elements in the currently allocated buffer.

Definition at line 172 of file ASTVector.h.

Referenced by clang::ASTVector< Stmt * >::resize().

template<typename T>
iterator clang::ASTVector< T >::capacity_ptr ( ) [inline, protected]

Definition at line 364 of file ASTVector.h.

Referenced by clang::ASTVector< Stmt * >::append().

template<typename T>
void clang::ASTVector< T >::clear ( ) [inline]

Definition at line 137 of file ASTVector.h.

template<typename T>
pointer clang::ASTVector< T >::data ( ) [inline]

data - Return a pointer to the vector's buffer, even if empty().

Definition at line 145 of file ASTVector.h.

Referenced by clang::InitListExpr::getInits().

template<typename T>
const_pointer clang::ASTVector< T >::data ( ) const [inline]

data - Return a pointer to the vector's buffer, even if empty().

Definition at line 150 of file ASTVector.h.

template<typename T>
bool clang::ASTVector< T >::empty ( ) const [inline]

Definition at line 100 of file ASTVector.h.

Referenced by clang::InitListExpr::children().

template<typename T>
iterator clang::ASTVector< T >::end ( ) [inline]
template<typename T>
const_iterator clang::ASTVector< T >::end ( ) const [inline]

Definition at line 92 of file ASTVector.h.

template<typename T>
reference clang::ASTVector< T >::front ( ) [inline]

Definition at line 112 of file ASTVector.h.

template<typename T>
const_reference clang::ASTVector< T >::front ( ) const [inline]

Definition at line 115 of file ASTVector.h.

template<typename T>
iterator clang::ASTVector< T >::insert ( ASTContext C,
iterator  I,
const T &  Elt 
) [inline]
template<typename T>
iterator clang::ASTVector< T >::insert ( ASTContext C,
iterator  I,
size_type  NumToInsert,
const T &  Elt 
) [inline]

Definition at line 234 of file ASTVector.h.

template<typename T>
template<typename ItTy >
iterator clang::ASTVector< T >::insert ( ASTContext C,
iterator  I,
ItTy  From,
ItTy  To 
) [inline]

Definition at line 283 of file ASTVector.h.

template<typename T>
reference clang::ASTVector< T >::operator[] ( unsigned  idx) [inline]

Definition at line 103 of file ASTVector.h.

template<typename T>
const_reference clang::ASTVector< T >::operator[] ( unsigned  idx) const [inline]

Definition at line 107 of file ASTVector.h.

template<typename T>
void clang::ASTVector< T >::pop_back ( ) [inline]

Definition at line 126 of file ASTVector.h.

Referenced by clang::ASTVector< Stmt * >::pop_back_val().

template<typename T>
T clang::ASTVector< T >::pop_back_val ( ) [inline]

Definition at line 131 of file ASTVector.h.

template<typename T>
void clang::ASTVector< T >::push_back ( const_reference  Elt,
ASTContext C 
) [inline]

Definition at line 154 of file ASTVector.h.

Referenced by clang::ASTVector< Stmt * >::insert().

template<typename T>
reverse_iterator clang::ASTVector< T >::rbegin ( ) [inline]

Definition at line 95 of file ASTVector.h.

Referenced by clang::InitListExpr::getSourceRange(), and clang::InitListExpr::rbegin().

template<typename T>
const_reverse_iterator clang::ASTVector< T >::rbegin ( ) const [inline]

Definition at line 96 of file ASTVector.h.

template<typename T>
reverse_iterator clang::ASTVector< T >::rend ( ) [inline]

Definition at line 97 of file ASTVector.h.

Referenced by clang::InitListExpr::getSourceRange(), and clang::InitListExpr::rend().

template<typename T>
const_reverse_iterator clang::ASTVector< T >::rend ( ) const [inline]

Definition at line 98 of file ASTVector.h.

template<typename T>
void clang::ASTVector< T >::reserve ( ASTContext C,
unsigned  N 
) [inline]
template<typename T>
void clang::ASTVector< T >::resize ( ASTContext C,
unsigned  N,
const T &  NV 
) [inline]

Definition at line 334 of file ASTVector.h.

Referenced by clang::InitListExpr::resizeInits().

template<typename T>
size_type clang::ASTVector< T >::size ( ) const [inline]
template<typename T>
template<typename It1 , typename It2 >
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 209 of file ASTVector.h.

Referenced by clang::ASTVector< Stmt * >::append(), clang::ASTVector< Stmt * >::insert(), and clang::ASTVector< Stmt * >::uninitialized_copy().


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