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

#include "clang/Analysis/Support/BumpVector.h"

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

Public Types

using size_type = size_t
 
using difference_type = ptrdiff_t
 
using value_type = T
 
using iterator = T *
 
using const_iterator = const T *
 
using const_reverse_iterator = std::reverse_iterator< const_iterator >
 
using reverse_iterator = std::reverse_iterator< iterator >
 
using reference = T &
 
using const_reference = const T &
 
using pointer = T *
 
using const_pointer = const T *
 

Public Member Functions

 BumpVector (BumpVectorContext &C, unsigned N)
 
 ~BumpVector ()
 
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, BumpVectorContext &C)
 
iterator insert (iterator I, size_t Cnt, const_reference E, BumpVectorContext &C)
 insert - Insert some number of copies of element into a position. More...
 
void reserve (BumpVectorContext &C, unsigned N)
 
size_t capacity () const
 capacity - Return the total number of elements in the currently allocated buffer. More...
 

Detailed Description

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

Definition at line 60 of file BumpVector.h.

Member Typedef Documentation

◆ const_iterator

template<typename T>
using clang::BumpVector< T >::const_iterator = const T *

Definition at line 82 of file BumpVector.h.

◆ const_pointer

template<typename T>
using clang::BumpVector< T >::const_pointer = const T *

Definition at line 90 of file BumpVector.h.

◆ const_reference

template<typename T>
using clang::BumpVector< T >::const_reference = const T &

Definition at line 88 of file BumpVector.h.

◆ const_reverse_iterator

template<typename T>
using clang::BumpVector< T >::const_reverse_iterator = std::reverse_iterator<const_iterator>

Definition at line 84 of file BumpVector.h.

◆ difference_type

template<typename T>
using clang::BumpVector< T >::difference_type = ptrdiff_t

Definition at line 79 of file BumpVector.h.

◆ iterator

template<typename T>
using clang::BumpVector< T >::iterator = T *

Definition at line 81 of file BumpVector.h.

◆ pointer

template<typename T>
using clang::BumpVector< T >::pointer = T *

Definition at line 89 of file BumpVector.h.

◆ reference

template<typename T>
using clang::BumpVector< T >::reference = T &

Definition at line 87 of file BumpVector.h.

◆ reverse_iterator

template<typename T>
using clang::BumpVector< T >::reverse_iterator = std::reverse_iterator<iterator>

Definition at line 85 of file BumpVector.h.

◆ size_type

template<typename T>
using clang::BumpVector< T >::size_type = size_t

Definition at line 78 of file BumpVector.h.

◆ value_type

template<typename T>
using clang::BumpVector< T >::value_type = T

Definition at line 80 of file BumpVector.h.

Constructor & Destructor Documentation

◆ BumpVector()

template<typename T>
clang::BumpVector< T >::BumpVector ( BumpVectorContext C,
unsigned  N 
)
inlineexplicit

Definition at line 67 of file BumpVector.h.

◆ ~BumpVector()

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

Definition at line 71 of file BumpVector.h.

Member Function Documentation

◆ back() [1/2]

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

Definition at line 125 of file BumpVector.h.

◆ back() [2/2]

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

Definition at line 128 of file BumpVector.h.

◆ begin() [1/2]

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

◆ begin() [2/2]

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

Definition at line 94 of file BumpVector.h.

◆ capacity()

template<typename T>
size_t clang::BumpVector< T >::capacity ( ) const
inline

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

Definition at line 196 of file BumpVector.h.

◆ clear()

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

Definition at line 143 of file BumpVector.h.

◆ data() [1/2]

template<typename T>
pointer clang::BumpVector< T >::data ( )
inline

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

Definition at line 151 of file BumpVector.h.

◆ data() [2/2]

template<typename T>
const_pointer clang::BumpVector< T >::data ( ) const
inline

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

Definition at line 156 of file BumpVector.h.

◆ empty()

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

Definition at line 106 of file BumpVector.h.

Referenced by clang::CFGBlock::pred_empty(), and clang::CFGBlock::succ_empty().

◆ end() [1/2]

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

◆ end() [2/2]

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

Definition at line 96 of file BumpVector.h.

◆ front() [1/2]

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

Definition at line 118 of file BumpVector.h.

◆ front() [2/2]

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

Definition at line 121 of file BumpVector.h.

◆ insert()

template<typename T>
iterator clang::BumpVector< T >::insert ( iterator  I,
size_t  Cnt,
const_reference  E,
BumpVectorContext C 
)
inline

insert - Insert some number of copies of element into a position.

Return iterator to position after last inserted copy.

Definition at line 173 of file BumpVector.h.

◆ operator[]() [1/2]

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

Definition at line 109 of file BumpVector.h.

◆ operator[]() [2/2]

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

Definition at line 113 of file BumpVector.h.

◆ pop_back()

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

Definition at line 132 of file BumpVector.h.

◆ pop_back_val()

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

Definition at line 137 of file BumpVector.h.

◆ push_back()

template<typename T>
void clang::BumpVector< T >::push_back ( const_reference  Elt,
BumpVectorContext C 
)
inline

◆ rbegin() [1/2]

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

Definition at line 99 of file BumpVector.h.

Referenced by clang::CFGBlock::pred_rbegin(), and clang::CFGBlock::succ_rbegin().

◆ rbegin() [2/2]

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

Definition at line 100 of file BumpVector.h.

◆ rend() [1/2]

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

Definition at line 101 of file BumpVector.h.

Referenced by clang::CFGBlock::pred_rend(), and clang::CFGBlock::succ_rend().

◆ rend() [2/2]

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

Definition at line 102 of file BumpVector.h.

◆ reserve()

template<typename T>
void clang::BumpVector< T >::reserve ( BumpVectorContext C,
unsigned  N 
)
inline

Definition at line 189 of file BumpVector.h.

◆ size()

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

Definition at line 107 of file BumpVector.h.

Referenced by clang::CFGBlock::pred_size(), and clang::CFGBlock::succ_size().


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