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

#include <handles.h>

Collaboration diagram for v8::internal::DirectHandleVector< T >:

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
 
using const_iterator
 

Public Member Functions

template<typename IsolateT >
 DirectHandleVector (IsolateT *isolate)
 
template<typename IsolateT >
 DirectHandleVector (IsolateT *isolate, size_t n)
 
template<typename IsolateT >
 DirectHandleVector (IsolateT *isolate, std::initializer_list< value_type > init)
 
iterator begin () noexcept
 
const_iterator begin () const noexcept
 
iterator end () noexcept
 
const_iterator end () const noexcept
 
size_t size () const noexcept
 
bool empty () const noexcept
 
void reserve (size_t n)
 
void shrink_to_fit ()
 
DirectHandle< T > & operator[] (size_t n)
 
const DirectHandle< T > & operator[] (size_t n) const
 
DirectHandle< T > & at (size_t n)
 
const DirectHandle< T > & at (size_t n) const
 
DirectHandle< T > & front ()
 
const DirectHandle< T > & front () const
 
DirectHandle< T > & back ()
 
const DirectHandle< T > & back () const
 
DirectHandle< T > * data () noexcept
 
const DirectHandle< T > * data () const noexcept
 
iterator insert (const_iterator pos, const DirectHandle< T > &value)
 
template<typename InputIt >
iterator insert (const_iterator pos, InputIt first, InputIt last)
 
iterator insert (const_iterator pos, std::initializer_list< DirectHandle< T > > init)
 
DirectHandleVector< T > & operator= (std::initializer_list< value_type > init)
 
void push_back (const DirectHandle< T > &x)
 
void pop_back ()
 
template<typename... Args>
void emplace_back (Args &&... args)
 
void clear () noexcept
 
void resize (size_t n)
 
void resize (size_t n, const value_type &value)
 
void swap (DirectHandleVector< T > &other)
 

Private Types

using element_type = internal::DirectHandleUnchecked<T>
 
using vector_type = std::vector<element_type>
 

Private Attributes

vector_type backing_
 

Friends

bool operator== (const DirectHandleVector< T > &x, const DirectHandleVector< T > &y)
 
bool operator!= (const DirectHandleVector< T > &x, const DirectHandleVector< T > &y)
 
bool operator< (const DirectHandleVector< T > &x, const DirectHandleVector< T > &y)
 
bool operator> (const DirectHandleVector< T > &x, const DirectHandleVector< T > &y)
 
bool operator<= (const DirectHandleVector< T > &x, const DirectHandleVector< T > &y)
 
bool operator>= (const DirectHandleVector< T > &x, const DirectHandleVector< T > &y)
 

Detailed Description

template<typename T>
class v8::internal::DirectHandleVector< T >

Definition at line 836 of file handles.h.

Member Typedef Documentation

◆ const_iterator

template<typename T >
using v8::internal::DirectHandleVector< T >::const_iterator
Initial value:
internal::WrappedIterator<typename vector_type::const_iterator,
const value_type>
DirectHandle< T > value_type
Definition handles.h:854

Definition at line 861 of file handles.h.

◆ const_reference

template<typename T >
using v8::internal::DirectHandleVector< T >::const_reference = const value_type&

Definition at line 856 of file handles.h.

◆ difference_type

template<typename T >
using v8::internal::DirectHandleVector< T >::difference_type = ptrdiff_t

Definition at line 858 of file handles.h.

◆ element_type

template<typename T >
using v8::internal::DirectHandleVector< T >::element_type = internal::DirectHandleUnchecked<T>
private

Definition at line 838 of file handles.h.

◆ iterator

template<typename T >
using v8::internal::DirectHandleVector< T >::iterator
Initial value:
internal::WrappedIterator<typename vector_type::iterator, value_type>

Definition at line 859 of file handles.h.

◆ reference

template<typename T >
using v8::internal::DirectHandleVector< T >::reference = value_type&

Definition at line 855 of file handles.h.

◆ size_type

template<typename T >
using v8::internal::DirectHandleVector< T >::size_type = size_t

Definition at line 857 of file handles.h.

◆ value_type

template<typename T >
using v8::internal::DirectHandleVector< T >::value_type = DirectHandle<T>

Definition at line 854 of file handles.h.

◆ vector_type

template<typename T >
using v8::internal::DirectHandleVector< T >::vector_type = std::vector<element_type>
private

Definition at line 850 of file handles.h.

Constructor & Destructor Documentation

◆ DirectHandleVector() [1/3]

template<typename T >
template<typename IsolateT >
v8::internal::DirectHandleVector< T >::DirectHandleVector ( IsolateT * isolate)
inlineexplicit

Definition at line 881 of file handles.h.

◆ DirectHandleVector() [2/3]

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

Definition at line 883 of file handles.h.

◆ DirectHandleVector() [3/3]

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

Definition at line 885 of file handles.h.

Member Function Documentation

◆ at() [1/2]

template<typename T >
DirectHandle< T > & v8::internal::DirectHandleVector< T >::at ( size_t n)
inline

Definition at line 908 of file handles.h.

◆ at() [2/2]

template<typename T >
const DirectHandle< T > & v8::internal::DirectHandleVector< T >::at ( size_t n) const
inline

Definition at line 909 of file handles.h.

◆ back() [1/2]

template<typename T >
DirectHandle< T > & v8::internal::DirectHandleVector< T >::back ( )
inline

Definition at line 913 of file handles.h.

◆ back() [2/2]

template<typename T >
const DirectHandle< T > & v8::internal::DirectHandleVector< T >::back ( ) const
inline

Definition at line 914 of file handles.h.

◆ begin() [1/2]

template<typename T >
const_iterator v8::internal::DirectHandleVector< T >::begin ( ) const
inlinenoexcept

Definition at line 894 of file handles.h.

◆ begin() [2/2]

template<typename T >
iterator v8::internal::DirectHandleVector< T >::begin ( )
inlinenoexcept

Definition at line 893 of file handles.h.

Here is the caller graph for this function:

◆ clear()

template<typename T >
void v8::internal::DirectHandleVector< T >::clear ( )
inlinenoexcept

Definition at line 948 of file handles.h.

◆ data() [1/2]

template<typename T >
const DirectHandle< T > * v8::internal::DirectHandleVector< T >::data ( ) const
inlinenoexcept

Definition at line 917 of file handles.h.

◆ data() [2/2]

template<typename T >
DirectHandle< T > * v8::internal::DirectHandleVector< T >::data ( )
inlinenoexcept

Definition at line 916 of file handles.h.

Here is the caller graph for this function:

◆ emplace_back()

template<typename T >
template<typename... Args>
void v8::internal::DirectHandleVector< T >::emplace_back ( Args &&... args)
inline

Definition at line 944 of file handles.h.

◆ empty()

template<typename T >
bool v8::internal::DirectHandleVector< T >::empty ( ) const
inlinenoexcept

Definition at line 901 of file handles.h.

◆ end() [1/2]

template<typename T >
const_iterator v8::internal::DirectHandleVector< T >::end ( ) const
inlinenoexcept

Definition at line 898 of file handles.h.

◆ end() [2/2]

template<typename T >
iterator v8::internal::DirectHandleVector< T >::end ( )
inlinenoexcept

Definition at line 897 of file handles.h.

Here is the caller graph for this function:

◆ front() [1/2]

template<typename T >
DirectHandle< T > & v8::internal::DirectHandleVector< T >::front ( )
inline

Definition at line 911 of file handles.h.

◆ front() [2/2]

template<typename T >
const DirectHandle< T > & v8::internal::DirectHandleVector< T >::front ( ) const
inline

Definition at line 912 of file handles.h.

◆ insert() [1/3]

template<typename T >
iterator v8::internal::DirectHandleVector< T >::insert ( const_iterator pos,
const DirectHandle< T > & value )
inline

Definition at line 919 of file handles.h.

◆ insert() [2/3]

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

Definition at line 924 of file handles.h.

◆ insert() [3/3]

template<typename T >
iterator v8::internal::DirectHandleVector< T >::insert ( const_iterator pos,
std::initializer_list< DirectHandle< T > > init )
inline

Definition at line 928 of file handles.h.

◆ operator=()

template<typename T >
DirectHandleVector< T > & v8::internal::DirectHandleVector< T >::operator= ( std::initializer_list< value_type > init)
inline

Definition at line 933 of file handles.h.

◆ operator[]() [1/2]

template<typename T >
DirectHandle< T > & v8::internal::DirectHandleVector< T >::operator[] ( size_t n)
inline

Definition at line 905 of file handles.h.

◆ operator[]() [2/2]

template<typename T >
const DirectHandle< T > & v8::internal::DirectHandleVector< T >::operator[] ( size_t n) const
inline

Definition at line 906 of file handles.h.

◆ pop_back()

template<typename T >
void v8::internal::DirectHandleVector< T >::pop_back ( )
inline

Definition at line 941 of file handles.h.

◆ push_back()

template<typename T >
void v8::internal::DirectHandleVector< T >::push_back ( const DirectHandle< T > & x)
inline

Definition at line 940 of file handles.h.

Here is the caller graph for this function:

◆ reserve()

template<typename T >
void v8::internal::DirectHandleVector< T >::reserve ( size_t n)
inline

Definition at line 902 of file handles.h.

Here is the caller graph for this function:

◆ resize() [1/2]

template<typename T >
void v8::internal::DirectHandleVector< T >::resize ( size_t n)
inline

Definition at line 949 of file handles.h.

◆ resize() [2/2]

template<typename T >
void v8::internal::DirectHandleVector< T >::resize ( size_t n,
const value_type & value )
inline

Definition at line 950 of file handles.h.

◆ shrink_to_fit()

template<typename T >
void v8::internal::DirectHandleVector< T >::shrink_to_fit ( )
inline

Definition at line 903 of file handles.h.

◆ size()

template<typename T >
size_t v8::internal::DirectHandleVector< T >::size ( ) const
inlinenoexcept

Definition at line 900 of file handles.h.

Here is the caller graph for this function:

◆ swap()

template<typename T >
void v8::internal::DirectHandleVector< T >::swap ( DirectHandleVector< T > & other)
inline

Definition at line 951 of file handles.h.

Friends And Related Symbol Documentation

◆ operator!=

template<typename T >
bool operator!= ( const DirectHandleVector< T > & x,
const DirectHandleVector< T > & y )
friend

Definition at line 957 of file handles.h.

◆ operator<

template<typename T >
bool operator< ( const DirectHandleVector< T > & x,
const DirectHandleVector< T > & y )
friend

Definition at line 961 of file handles.h.

◆ operator<=

template<typename T >
bool operator<= ( const DirectHandleVector< T > & x,
const DirectHandleVector< T > & y )
friend

Definition at line 969 of file handles.h.

◆ operator==

template<typename T >
bool operator== ( const DirectHandleVector< T > & x,
const DirectHandleVector< T > & y )
friend

Definition at line 953 of file handles.h.

◆ operator>

template<typename T >
bool operator> ( const DirectHandleVector< T > & x,
const DirectHandleVector< T > & y )
friend

Definition at line 965 of file handles.h.

◆ operator>=

template<typename T >
bool operator>= ( const DirectHandleVector< T > & x,
const DirectHandleVector< T > & y )
friend

Definition at line 973 of file handles.h.

Member Data Documentation

◆ backing_

template<typename T >
vector_type v8::internal::DirectHandleVector< T >::backing_
private

Definition at line 979 of file handles.h.


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