v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::DirectHandleSmallVector< T, kSize > Class Template Reference

#include <handles.h>

Collaboration diagram for v8::internal::DirectHandleSmallVector< T, kSize >:

Public Types

using value_type = DirectHandle<T>
 
using reference = value_type&
 
using const_reference = const value_type&
 
using size_type = size_t
 
using difference_type = ptrdiff_t
 
using iterator = internal::WrappedIterator<element_type*, value_type>
 
using const_iterator
 
using reverse_iterator = internal::WrappedIterator<element_type*, value_type>
 
using const_reverse_iterator
 

Public Member Functions

template<typename IsolateT >
 DirectHandleSmallVector (IsolateT *isolate)
 
template<typename IsolateT >
 DirectHandleSmallVector (IsolateT *isolate, size_t n)
 
template<typename IsolateT >
 DirectHandleSmallVector (IsolateT *isolate, std::initializer_list< value_type > init)
 
template<typename IsolateT >
V8_INLINE DirectHandleSmallVector (base::Vector< const value_type > init)
 
value_typedata () noexcept
 
const value_typedata () const noexcept
 
iterator begin () noexcept
 
const_iterator begin () const noexcept
 
iterator end () noexcept
 
const_iterator end () const noexcept
 
iterator rbegin () noexcept
 
const_iterator rbegin () const noexcept
 
iterator rand () noexcept
 
const_iterator rend () const noexcept
 
size_t size () const noexcept
 
bool empty () const noexcept
 
size_t capacity () const
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
reference at (size_t n)
 
const_reference at (size_t n) const
 
referenceoperator[] (size_t n)
 
const_referenceoperator[] (size_t n) const
 
template<typename... Args>
void emplace_back (Args &&... args)
 
void push_back (const_reference x)
 
void pop_back (size_t count=1)
 
iterator insert (const_iterator pos, const_reference value)
 
iterator insert (const_iterator pos, size_t count, const_reference value)
 
template<typename InputIt >
iterator insert (const_iterator pos, InputIt first, InputIt last)
 
iterator insert (const_iterator pos, std::initializer_list< value_type > init)
 
void erase (iterator erase_start)
 
void resize (size_t new_size)
 
void resize (size_t new_size, const_reference initial_value)
 
void reserve (size_t n)
 
void clear () noexcept
 
auto get_allocator () const
 

Static Public Attributes

static constexpr size_t kInlineSize = kSize
 

Private Types

using element_type = internal::DirectHandleUnchecked<T>
 
using vector_type = ::v8::base::SmallVector<element_type, kSize>
 

Private Attributes

vector_type backing_
 

Detailed Description

template<typename T, size_t kSize>
class v8::internal::DirectHandleSmallVector< T, kSize >

Definition at line 983 of file handles.h.

Member Typedef Documentation

◆ const_iterator

template<typename T , size_t kSize>
using v8::internal::DirectHandleSmallVector< T, kSize >::const_iterator
Initial value:
internal::WrappedIterator<const element_type*, const value_type>

Definition at line 1009 of file handles.h.

◆ const_reference

template<typename T , size_t kSize>
using v8::internal::DirectHandleSmallVector< T, kSize >::const_reference = const value_type&

Definition at line 1005 of file handles.h.

◆ const_reverse_iterator

template<typename T , size_t kSize>
using v8::internal::DirectHandleSmallVector< T, kSize >::const_reverse_iterator
Initial value:
internal::WrappedIterator<const element_type*, const value_type>

Definition at line 1012 of file handles.h.

◆ difference_type

template<typename T , size_t kSize>
using v8::internal::DirectHandleSmallVector< T, kSize >::difference_type = ptrdiff_t

Definition at line 1007 of file handles.h.

◆ element_type

template<typename T , size_t kSize>
using v8::internal::DirectHandleSmallVector< T, kSize >::element_type = internal::DirectHandleUnchecked<T>
private

Definition at line 985 of file handles.h.

◆ iterator

template<typename T , size_t kSize>
using v8::internal::DirectHandleSmallVector< T, kSize >::iterator = internal::WrappedIterator<element_type*, value_type>

Definition at line 1008 of file handles.h.

◆ reference

template<typename T , size_t kSize>
using v8::internal::DirectHandleSmallVector< T, kSize >::reference = value_type&

Definition at line 1004 of file handles.h.

◆ reverse_iterator

template<typename T , size_t kSize>
using v8::internal::DirectHandleSmallVector< T, kSize >::reverse_iterator = internal::WrappedIterator<element_type*, value_type>

Definition at line 1011 of file handles.h.

◆ size_type

template<typename T , size_t kSize>
using v8::internal::DirectHandleSmallVector< T, kSize >::size_type = size_t

Definition at line 1006 of file handles.h.

◆ value_type

template<typename T , size_t kSize>
using v8::internal::DirectHandleSmallVector< T, kSize >::value_type = DirectHandle<T>

Definition at line 1003 of file handles.h.

◆ vector_type

template<typename T , size_t kSize>
using v8::internal::DirectHandleSmallVector< T, kSize >::vector_type = ::v8::base::SmallVector<element_type, kSize>
private

Definition at line 998 of file handles.h.

Constructor & Destructor Documentation

◆ DirectHandleSmallVector() [1/4]

template<typename T , size_t kSize>
template<typename IsolateT >
v8::internal::DirectHandleSmallVector< T, kSize >::DirectHandleSmallVector ( IsolateT * isolate)
inlineexplicit

Definition at line 1032 of file handles.h.

◆ DirectHandleSmallVector() [2/4]

template<typename T , size_t kSize>
template<typename IsolateT >
v8::internal::DirectHandleSmallVector< T, kSize >::DirectHandleSmallVector ( IsolateT * isolate,
size_t n )
inline

Definition at line 1034 of file handles.h.

◆ DirectHandleSmallVector() [3/4]

template<typename T , size_t kSize>
template<typename IsolateT >
v8::internal::DirectHandleSmallVector< T, kSize >::DirectHandleSmallVector ( IsolateT * isolate,
std::initializer_list< value_type > init )
inline

Definition at line 1036 of file handles.h.

Here is the call graph for this function:

◆ DirectHandleSmallVector() [4/4]

template<typename T , size_t kSize>
template<typename IsolateT >
V8_INLINE v8::internal::DirectHandleSmallVector< T, kSize >::DirectHandleSmallVector ( base::Vector< const value_type > init)
inlineexplicit

Definition at line 1044 of file handles.h.

Here is the call graph for this function:

Member Function Documentation

◆ at() [1/2]

template<typename T , size_t kSize>
reference v8::internal::DirectHandleSmallVector< T, kSize >::at ( size_t n)
inline

Definition at line 1081 of file handles.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ at() [2/2]

template<typename T , size_t kSize>
const_reference v8::internal::DirectHandleSmallVector< T, kSize >::at ( size_t n) const
inline

Definition at line 1082 of file handles.h.

Here is the call graph for this function:

◆ back() [1/2]

template<typename T , size_t kSize>
reference v8::internal::DirectHandleSmallVector< T, kSize >::back ( )
inline

Definition at line 1078 of file handles.h.

Here is the call graph for this function:

◆ back() [2/2]

template<typename T , size_t kSize>
const_reference v8::internal::DirectHandleSmallVector< T, kSize >::back ( ) const
inline

Definition at line 1079 of file handles.h.

Here is the call graph for this function:

◆ begin() [1/2]

template<typename T , size_t kSize>
const_iterator v8::internal::DirectHandleSmallVector< T, kSize >::begin ( ) const
inlinenoexcept

Definition at line 1057 of file handles.h.

Here is the call graph for this function:

◆ begin() [2/2]

template<typename T , size_t kSize>
iterator v8::internal::DirectHandleSmallVector< T, kSize >::begin ( )
inlinenoexcept

Definition at line 1056 of file handles.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ capacity()

template<typename T , size_t kSize>
size_t v8::internal::DirectHandleSmallVector< T, kSize >::capacity ( ) const
inline

Definition at line 1074 of file handles.h.

Here is the call graph for this function:

◆ clear()

template<typename T , size_t kSize>
void v8::internal::DirectHandleSmallVector< T, kSize >::clear ( )
inlinenoexcept

Definition at line 1116 of file handles.h.

Here is the call graph for this function:

◆ data() [1/2]

template<typename T , size_t kSize>
const value_type * v8::internal::DirectHandleSmallVector< T, kSize >::data ( ) const
inlinenoexcept

Definition at line 1054 of file handles.h.

Here is the call graph for this function:

◆ data() [2/2]

template<typename T , size_t kSize>
value_type * v8::internal::DirectHandleSmallVector< T, kSize >::data ( )
inlinenoexcept

Definition at line 1053 of file handles.h.

Here is the call graph for this function:

◆ emplace_back()

template<typename T , size_t kSize>
template<typename... Args>
void v8::internal::DirectHandleSmallVector< T, kSize >::emplace_back ( Args &&... args)
inline

Definition at line 1088 of file handles.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ empty()

template<typename T , size_t kSize>
bool v8::internal::DirectHandleSmallVector< T, kSize >::empty ( ) const
inlinenoexcept

Definition at line 1073 of file handles.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ end() [1/2]

template<typename T , size_t kSize>
const_iterator v8::internal::DirectHandleSmallVector< T, kSize >::end ( ) const
inlinenoexcept

Definition at line 1061 of file handles.h.

Here is the call graph for this function:

◆ end() [2/2]

template<typename T , size_t kSize>
iterator v8::internal::DirectHandleSmallVector< T, kSize >::end ( )
inlinenoexcept

Definition at line 1060 of file handles.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ erase()

template<typename T , size_t kSize>
void v8::internal::DirectHandleSmallVector< T, kSize >::erase ( iterator erase_start)
inline

Definition at line 1109 of file handles.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ front() [1/2]

template<typename T , size_t kSize>
reference v8::internal::DirectHandleSmallVector< T, kSize >::front ( )
inline

Definition at line 1076 of file handles.h.

Here is the call graph for this function:

◆ front() [2/2]

template<typename T , size_t kSize>
const_reference v8::internal::DirectHandleSmallVector< T, kSize >::front ( ) const
inline

Definition at line 1077 of file handles.h.

Here is the call graph for this function:

◆ get_allocator()

template<typename T , size_t kSize>
auto v8::internal::DirectHandleSmallVector< T, kSize >::get_allocator ( ) const
inline

Definition at line 1118 of file handles.h.

Here is the call graph for this function:

◆ insert() [1/4]

template<typename T , size_t kSize>
iterator v8::internal::DirectHandleSmallVector< T, kSize >::insert ( const_iterator pos,
const_reference value )
inline

Definition at line 1095 of file handles.h.

Here is the call graph for this function:

◆ insert() [2/4]

template<typename T , size_t kSize>
template<typename InputIt >
iterator v8::internal::DirectHandleSmallVector< T, kSize >::insert ( const_iterator pos,
InputIt first,
InputIt last )
inline

Definition at line 1102 of file handles.h.

Here is the call graph for this function:

◆ insert() [3/4]

template<typename T , size_t kSize>
iterator v8::internal::DirectHandleSmallVector< T, kSize >::insert ( const_iterator pos,
size_t count,
const_reference value )
inline

Definition at line 1098 of file handles.h.

Here is the call graph for this function:

◆ insert() [4/4]

template<typename T , size_t kSize>
iterator v8::internal::DirectHandleSmallVector< T, kSize >::insert ( const_iterator pos,
std::initializer_list< value_type > init )
inline

Definition at line 1105 of file handles.h.

Here is the call graph for this function:

◆ operator[]() [1/2]

template<typename T , size_t kSize>
reference & v8::internal::DirectHandleSmallVector< T, kSize >::operator[] ( size_t n)
inline

Definition at line 1084 of file handles.h.

◆ operator[]() [2/2]

template<typename T , size_t kSize>
const_reference & v8::internal::DirectHandleSmallVector< T, kSize >::operator[] ( size_t n) const
inline

Definition at line 1085 of file handles.h.

◆ pop_back()

template<typename T , size_t kSize>
void v8::internal::DirectHandleSmallVector< T, kSize >::pop_back ( size_t count = 1)
inline

Definition at line 1093 of file handles.h.

Here is the call graph for this function:

◆ push_back()

template<typename T , size_t kSize>
void v8::internal::DirectHandleSmallVector< T, kSize >::push_back ( const_reference x)
inline

Definition at line 1092 of file handles.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rand()

template<typename T , size_t kSize>
iterator v8::internal::DirectHandleSmallVector< T, kSize >::rand ( )
inlinenoexcept

Definition at line 1067 of file handles.h.

Here is the call graph for this function:

◆ rbegin() [1/2]

template<typename T , size_t kSize>
const_iterator v8::internal::DirectHandleSmallVector< T, kSize >::rbegin ( ) const
inlinenoexcept

Definition at line 1064 of file handles.h.

Here is the call graph for this function:

◆ rbegin() [2/2]

template<typename T , size_t kSize>
iterator v8::internal::DirectHandleSmallVector< T, kSize >::rbegin ( )
inlinenoexcept

Definition at line 1063 of file handles.h.

Here is the call graph for this function:

◆ rend()

template<typename T , size_t kSize>
const_iterator v8::internal::DirectHandleSmallVector< T, kSize >::rend ( ) const
inlinenoexcept

Definition at line 1068 of file handles.h.

Here is the call graph for this function:

◆ reserve()

template<typename T , size_t kSize>
void v8::internal::DirectHandleSmallVector< T, kSize >::reserve ( size_t n)
inline

Definition at line 1115 of file handles.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resize() [1/2]

template<typename T , size_t kSize>
void v8::internal::DirectHandleSmallVector< T, kSize >::resize ( size_t new_size)
inline

Definition at line 1110 of file handles.h.

Here is the call graph for this function:

◆ resize() [2/2]

template<typename T , size_t kSize>
void v8::internal::DirectHandleSmallVector< T, kSize >::resize ( size_t new_size,
const_reference initial_value )
inline

Definition at line 1111 of file handles.h.

Here is the call graph for this function:

◆ size()

template<typename T , size_t kSize>
size_t v8::internal::DirectHandleSmallVector< T, kSize >::size ( ) const
inlinenoexcept

Definition at line 1072 of file handles.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ backing_

template<typename T , size_t kSize>
vector_type v8::internal::DirectHandleSmallVector< T, kSize >::backing_
private

Definition at line 1121 of file handles.h.

◆ kInlineSize

template<typename T , size_t kSize>
size_t v8::internal::DirectHandleSmallVector< T, kSize >::kInlineSize = kSize
staticconstexpr

Definition at line 1002 of file handles.h.


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