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 ()
 ASTVector (ASTVector &&O)
 ASTVector (const ASTContext &C, unsigned N)
ASTVectoroperator= (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 ()
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 ()

Detailed Description

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

Definition at line 33 of file ASTVector.h.


Member Typedef Documentation

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

Definition at line 81 of file ASTVector.h.

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

Definition at line 89 of file ASTVector.h.

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

Definition at line 87 of file ASTVector.h.

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

Definition at line 83 of file ASTVector.h.

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

Definition at line 78 of file ASTVector.h.

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

Definition at line 80 of file ASTVector.h.

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

Definition at line 88 of file ASTVector.h.

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

Definition at line 86 of file ASTVector.h.

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

Definition at line 84 of file ASTVector.h.

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

Definition at line 77 of file ASTVector.h.

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

Definition at line 79 of file ASTVector.h.


Constructor & Destructor Documentation

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

Definition at line 48 of file ASTVector.h.

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

Definition at line 50 of file ASTVector.h.

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

Definition at line 56 of file ASTVector.h.

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

Definition at line 70 of file ASTVector.h.


Member Function Documentation

template<typename T>
template<typename in_iter >
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().

template<typename T>
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.

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

Definition at line 125 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 93 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 175 of file ASTVector.h.

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

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

Definition at line 371 of file ASTVector.h.

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

Definition at line 140 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 148 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 153 of file ASTVector.h.

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

Definition at line 103 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 95 of file ASTVector.h.

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

Definition at line 115 of file ASTVector.h.

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

Definition at line 118 of file ASTVector.h.

template<typename T>
bool clang::ASTVector< T >::getTag ( ) const [inline, protected]

Definition at line 43 of file ASTVector.h.

template<typename T>
iterator clang::ASTVector< T >::insert ( const ASTContext C,
iterator  I,
const T &  Elt 
) [inline]
template<typename T>
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.

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

Definition at line 286 of file ASTVector.h.

template<typename T>
ASTVector& clang::ASTVector< T >::operator= ( ASTVector< T > &&  RHS) [inline]

Definition at line 61 of file ASTVector.h.

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

Definition at line 106 of file ASTVector.h.

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

Definition at line 110 of file ASTVector.h.

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

Definition at line 129 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 134 of file ASTVector.h.

template<typename T>
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().

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

Definition at line 98 of file ASTVector.h.

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

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

Definition at line 99 of file ASTVector.h.

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

Definition at line 100 of file ASTVector.h.

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

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

Definition at line 101 of file ASTVector.h.

template<typename T>
void clang::ASTVector< T >::reserve ( const ASTContext C,
unsigned  N 
) [inline]
template<typename T>
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().

template<typename T>
void clang::ASTVector< T >::setTag ( bool  B) [inline, protected]

Definition at line 44 of file ASTVector.h.

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 212 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: