class ASTVector

Declaration

template <typename T>
class ASTVector { /* full declaration omitted */ };

Declared at: clang/include/clang/AST/ASTVector.h:36

Templates

T

Member Variables

private T* Begin = nullptr
private T* End = nullptr
private llvm::PointerIntPair<T*, 1, bool> Capacity

Method Overview

  • public ASTVector<T>()
  • public ASTVector<T>(ASTVector<T> && O)
  • public ASTVector<T>(const clang::ASTContext & C, unsigned int N)
  • public template <typename in_iter>void append(const clang::ASTContext & C, in_iter in_start, in_iter in_end)
  • public void append(const clang::ASTContext & C, clang::ASTVector::size_type NumInputs, const T & Elt)
  • public clang::ASTVector::const_reference back() const
  • public clang::ASTVector::reference back()
  • public clang::ASTVector::iterator begin()
  • public clang::ASTVector::const_iterator begin() const
  • public size_t capacity() const
  • protected clang::ASTVector::iterator capacity_ptr()
  • protected clang::ASTVector::const_iterator capacity_ptr() const
  • public void clear()
  • private void construct_range(T * S, T * E, const T & Elt)
  • public clang::ASTVector::const_pointer data() const
  • public clang::ASTVector::pointer data()
  • private void destroy_range(T * S, T * E)
  • public bool empty() const
  • public clang::ASTVector::const_iterator end() const
  • public clang::ASTVector::iterator end()
  • public clang::ASTVector::reference front()
  • public clang::ASTVector::const_reference front() const
  • protected bool getTag() const
  • private void grow(const clang::ASTContext & C, clang::ASTVector::size_type MinSize = 1)
  • public template <typename ItTy>clang::ASTVector::iterator insert(const clang::ASTContext & C, clang::ASTVector::iterator I, ItTy From, ItTy To)
  • public clang::ASTVector::iterator insert(const clang::ASTContext & C, clang::ASTVector::iterator I, clang::ASTVector::size_type NumToInsert, const T & Elt)
  • public clang::ASTVector::iterator insert(const clang::ASTContext & C, clang::ASTVector::iterator I, const T & Elt)
  • public void pop_back()
  • public T pop_back_val()
  • public void push_back(clang::ASTVector::const_reference Elt, const clang::ASTContext & C)
  • public clang::ASTVector::const_reverse_iterator rbegin() const
  • public clang::ASTVector::reverse_iterator rbegin()
  • public clang::ASTVector::const_reverse_iterator rend() const
  • public clang::ASTVector::reverse_iterator rend()
  • public void reserve(const clang::ASTContext & C, unsigned int N)
  • public void resize(const clang::ASTContext & C, unsigned int N, const T & NV)
  • private void setEnd(T * P)
  • protected void setTag(bool B)
  • public clang::ASTVector::size_type size() const
  • public template <typename It1, typename It2>static void uninitialized_copy(It1 I, It1 E, It2 Dest)
  • public ~ASTVector<T>()

Methods

ASTVector<T>()

Declared at: clang/include/clang/AST/ASTVector.h:52

ASTVector<T>(ASTVector<T>&& O)

Declared at: clang/include/clang/AST/ASTVector.h:54

Parameters

ASTVector<T>&& O

ASTVector<T>(const clang::ASTContext& C,
             unsigned int N)

Declared at: clang/include/clang/AST/ASTVector.h:60

Parameters

const clang::ASTContext& C
unsigned int N

template <typename in_iter>
void append(const clang::ASTContext& C,
            in_iter in_start,
            in_iter in_end)

Description

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

Declared at: clang/include/clang/AST/ASTVector.h:184

Templates

in_iter

Parameters

const clang::ASTContext& C
in_iter in_start
in_iter in_end

void append(const clang::ASTContext& C,
            clang::ASTVector::size_type NumInputs,
            const T& Elt)

Description

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

Declared at: clang/include/clang/AST/ASTVector.h:202

Parameters

const clang::ASTContext& C
clang::ASTVector::size_type NumInputs
const T& Elt

clang::ASTVector::const_reference back() const

Declared at: clang/include/clang/AST/ASTVector.h:130

clang::ASTVector::reference back()

Declared at: clang/include/clang/AST/ASTVector.h:127

clang::ASTVector::iterator begin()

Declared at: clang/include/clang/AST/ASTVector.h:97

clang::ASTVector::const_iterator begin() const

Declared at: clang/include/clang/AST/ASTVector.h:98

size_t capacity() const

Description

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

Declared at: clang/include/clang/AST/ASTVector.h:180

clang::ASTVector::iterator capacity_ptr()

Declared at: clang/include/clang/AST/ASTVector.h:375

clang::ASTVector::const_iterator capacity_ptr()
    const

Declared at: clang/include/clang/AST/ASTVector.h:371

void clear()

Declared at: clang/include/clang/AST/ASTVector.h:145

void construct_range(T* S, T* E, const T& Elt)

Declared at: clang/include/clang/AST/ASTVector.h:358

Parameters

T* S
T* E
const T& Elt

clang::ASTVector::const_pointer data() const

Description

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

Declared at: clang/include/clang/AST/ASTVector.h:158

clang::ASTVector::pointer data()

Description

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

Declared at: clang/include/clang/AST/ASTVector.h:153

void destroy_range(T* S, T* E)

Declared at: clang/include/clang/AST/ASTVector.h:363

Parameters

T* S
T* E

bool empty() const

Declared at: clang/include/clang/AST/ASTVector.h:108

clang::ASTVector::const_iterator end() const

Declared at: clang/include/clang/AST/ASTVector.h:100

clang::ASTVector::iterator end()

Declared at: clang/include/clang/AST/ASTVector.h:99

clang::ASTVector::reference front()

Declared at: clang/include/clang/AST/ASTVector.h:120

clang::ASTVector::const_reference front() const

Declared at: clang/include/clang/AST/ASTVector.h:123

bool getTag() const

Declared at: clang/include/clang/AST/ASTVector.h:47

void grow(const clang::ASTContext& C,
          clang::ASTVector::size_type MinSize = 1)

Description

grow - double the size of the allocated memory, guaranteeing space for at least one more element or MinSize if specified.

Declared at: clang/include/clang/AST/ASTVector.h:356

Parameters

const clang::ASTContext& C
clang::ASTVector::size_type MinSize = 1

template <typename ItTy>
clang::ASTVector::iterator insert(
    const clang::ASTContext& C,
    clang::ASTVector::iterator I,
    ItTy From,
    ItTy To)

Declared at: clang/include/clang/AST/ASTVector.h:289

Templates

ItTy

Parameters

const clang::ASTContext& C
clang::ASTVector::iterator I
ItTy From
ItTy To

clang::ASTVector::iterator insert(
    const clang::ASTContext& C,
    clang::ASTVector::iterator I,
    clang::ASTVector::size_type NumToInsert,
    const T& Elt)

Declared at: clang/include/clang/AST/ASTVector.h:240

Parameters

const clang::ASTContext& C
clang::ASTVector::iterator I
clang::ASTVector::size_type NumToInsert
const T& Elt

clang::ASTVector::iterator insert(
    const clang::ASTContext& C,
    clang::ASTVector::iterator I,
    const T& Elt)

Declared at: clang/include/clang/AST/ASTVector.h:219

Parameters

const clang::ASTContext& C
clang::ASTVector::iterator I
const T& Elt

void pop_back()

Declared at: clang/include/clang/AST/ASTVector.h:134

T pop_back_val()

Declared at: clang/include/clang/AST/ASTVector.h:139

void push_back(
    clang::ASTVector::const_reference Elt,
    const clang::ASTContext& C)

Declared at: clang/include/clang/AST/ASTVector.h:162

Parameters

clang::ASTVector::const_reference Elt
const clang::ASTContext& C

clang::ASTVector::const_reverse_iterator rbegin()
    const

Declared at: clang/include/clang/AST/ASTVector.h:104

clang::ASTVector::reverse_iterator rbegin()

Declared at: clang/include/clang/AST/ASTVector.h:103

clang::ASTVector::const_reverse_iterator rend()
    const

Declared at: clang/include/clang/AST/ASTVector.h:106

clang::ASTVector::reverse_iterator rend()

Declared at: clang/include/clang/AST/ASTVector.h:105

void reserve(const clang::ASTContext& C,
             unsigned int N)

Declared at: clang/include/clang/AST/ASTVector.h:173

Parameters

const clang::ASTContext& C
unsigned int N

void resize(const clang::ASTContext& C,
            unsigned int N,
            const T& NV)

Declared at: clang/include/clang/AST/ASTVector.h:341

Parameters

const clang::ASTContext& C
unsigned int N
const T& NV

void setEnd(T* P)

Declared at: clang/include/clang/AST/ASTVector.h:42

Parameters

T* P

void setTag(bool B)

Declared at: clang/include/clang/AST/ASTVector.h:48

Parameters

bool B

clang::ASTVector::size_type size() const

Declared at: clang/include/clang/AST/ASTVector.h:109

template <typename It1, typename It2>
static void uninitialized_copy(It1 I,
                               It1 E,
                               It2 Dest)

Description

uninitialized_copy - Copy the range [I, E) onto the uninitialized memory starting with "Dest", constructing elements into it as needed.

Declared at: clang/include/clang/AST/ASTVector.h:215

Templates

It1
It2

Parameters

It1 I
It1 E
It2 Dest

~ASTVector<T>()

Declared at: clang/include/clang/AST/ASTVector.h:75