clang  6.0.0svn
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
clang::ASTVector< T > Class Template Reference

#include "clang/AST/ASTVector.h"

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

Public Types

typedef size_t size_type
 
typedef ptrdiff_t difference_type
 
typedef T value_type
 
typedef Titerator
 
typedef const Tconst_iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
typedef Treference
 
typedef const Tconst_reference
 
typedef Tpointer
 
typedef const Tconst_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 ()
 
T pop_back_val ()
 
void clear ()
 
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...
 
void push_back (const_reference Elt, const ASTContext &C)
 
void reserve (const ASTContext &C, unsigned N)
 
size_t capacity () const
 capacity - Return the total number of elements in the currently allocated buffer. More...
 
template<typename in_iter >
void append (const ASTContext &C, in_iter in_start, in_iter in_end)
 append - Add the specified range to the end of the SmallVector. More...
 
void append (const ASTContext &C, size_type NumInputs, const T &Elt)
 append - Add the specified range to the end of the SmallVector. More...
 
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)
 uninitialized_copy - Copy the range [I, E) onto the uninitialized memory starting with "Dest", constructing elements into it as needed. More...
 

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

◆ const_iterator

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

Definition at line 81 of file ASTVector.h.

◆ const_pointer

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

Definition at line 89 of file ASTVector.h.

◆ const_reference

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

Definition at line 87 of file ASTVector.h.

◆ const_reverse_iterator

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

Definition at line 83 of file ASTVector.h.

◆ difference_type

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

Definition at line 78 of file ASTVector.h.

◆ iterator

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

Definition at line 80 of file ASTVector.h.

◆ pointer

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

Definition at line 88 of file ASTVector.h.

◆ reference

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

Definition at line 86 of file ASTVector.h.

◆ reverse_iterator

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

Definition at line 84 of file ASTVector.h.

◆ size_type

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

Definition at line 77 of file ASTVector.h.

◆ value_type

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

Definition at line 79 of file ASTVector.h.

Constructor & Destructor Documentation

◆ ASTVector() [1/3]

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

Definition at line 48 of file ASTVector.h.

◆ ASTVector() [2/3]

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

Definition at line 50 of file ASTVector.h.

◆ ASTVector() [3/3]

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

Definition at line 56 of file ASTVector.h.

◆ ~ASTVector()

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

Definition at line 70 of file ASTVector.h.

Member Function Documentation

◆ append() [1/2]

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.

◆ append() [2/2]

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.

◆ back() [1/2]

template<typename T>
reference clang::ASTVector< T >::back ( )
inline

Definition at line 122 of file ASTVector.h.

Referenced by clang::ASTVector< uint64_t >::pop_back_val().

◆ back() [2/2]

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

Definition at line 125 of file ASTVector.h.

◆ begin() [1/2]

template<typename T>
iterator clang::ASTVector< T >::begin ( )
inline

◆ begin() [2/2]

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

Definition at line 93 of file ASTVector.h.

◆ capacity()

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< uint64_t >::capacity_ptr(), and clang::ASTVector< uint64_t >::resize().

◆ capacity_ptr() [1/2]

template<typename T>
const_iterator clang::ASTVector< T >::capacity_ptr ( ) const
inlineprotected

◆ capacity_ptr() [2/2]

template<typename T>
iterator clang::ASTVector< T >::capacity_ptr ( )
inlineprotected

Definition at line 371 of file ASTVector.h.

◆ clear()

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

Definition at line 140 of file ASTVector.h.

◆ data() [1/2]

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().

◆ data() [2/2]

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.

◆ empty()

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

Definition at line 103 of file ASTVector.h.

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

◆ end() [1/2]

template<typename T>
iterator clang::ASTVector< T >::end ( )
inline

◆ end() [2/2]

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

Definition at line 95 of file ASTVector.h.

◆ front() [1/2]

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

Definition at line 115 of file ASTVector.h.

◆ front() [2/2]

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

Definition at line 118 of file ASTVector.h.

◆ getTag()

template<typename T>
bool clang::ASTVector< T >::getTag ( ) const
inlineprotected

Definition at line 43 of file ASTVector.h.

◆ insert() [1/3]

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

◆ insert() [2/3]

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.

◆ insert() [3/3]

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.

◆ operator=()

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

Definition at line 61 of file ASTVector.h.

◆ operator[]() [1/2]

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

Definition at line 106 of file ASTVector.h.

◆ operator[]() [2/2]

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

Definition at line 110 of file ASTVector.h.

◆ pop_back()

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

Definition at line 129 of file ASTVector.h.

Referenced by clang::ASTVector< uint64_t >::pop_back_val().

◆ pop_back_val()

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

Definition at line 134 of file ASTVector.h.

◆ push_back()

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

Definition at line 157 of file ASTVector.h.

◆ rbegin() [1/2]

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

Definition at line 98 of file ASTVector.h.

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

◆ rbegin() [2/2]

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

Definition at line 99 of file ASTVector.h.

◆ rend() [1/2]

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

Definition at line 100 of file ASTVector.h.

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

◆ rend() [2/2]

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

Definition at line 101 of file ASTVector.h.

◆ reserve()

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

◆ resize()

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().

◆ setTag()

template<typename T>
void clang::ASTVector< T >::setTag ( bool  B)
inlineprotected

Definition at line 44 of file ASTVector.h.

◆ size()

template<typename T>
size_type clang::ASTVector< T >::size ( ) const
inline

◆ uninitialized_copy()

template<typename T>
template<typename It1 , typename It2 >
static void clang::ASTVector< T >::uninitialized_copy ( It1  I,
It1  E,
It2  Dest 
)
inlinestatic

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.


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