Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
v8::LocalVector< T > Class Template Reference

#include <v8-local-handle.h>

Public Types

using value_type = Local< 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< typename vector_type::iterator, Local< T > >
 
using const_iterator = internal::WrappedIterator< typename vector_type::const_iterator, const Local< T > >
 

Public Member Functions

 LocalVector (Isolate *isolate)
 
 LocalVector (Isolate *isolate, size_t n)
 
 LocalVector (Isolate *isolate, std::initializer_list< Local< T > > 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 ()
 
Local< T > & operator[] (size_t n)
 
const Local< T > & operator[] (size_t n) const
 
Local< T > & at (size_t n)
 
const Local< T > & at (size_t n) const
 
Local< T > & front ()
 
const Local< T > & front () const
 
Local< T > & back ()
 
const Local< T > & back () const
 
Local< T > * data () noexcept
 
const Local< T > * data () const noexcept
 
iterator insert (const_iterator pos, const Local< T > &value)
 
template<typename InputIt >
iterator insert (const_iterator pos, InputIt first, InputIt last)
 
iterator insert (const_iterator pos, std::initializer_list< Local< T > > init)
 
LocalVector< T > & operator= (std::initializer_list< Local< T > > init)
 
void push_back (const Local< T > &x)
 
void pop_back ()
 
template<typename... Args>
void emplace_back (Args &&... args)
 
void clear () noexcept
 
void resize (size_t n)
 
void swap (LocalVector< T > &other)
 

Friends

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

Member Typedef Documentation

◆ const_iterator

template<typename T >
using v8::LocalVector< T >::const_iterator = internal::WrappedIterator<typename vector_type::const_iterator, const Local<T> >

◆ const_reference

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

◆ difference_type

template<typename T >
using v8::LocalVector< T >::difference_type = ptrdiff_t

◆ iterator

template<typename T >
using v8::LocalVector< T >::iterator = internal::WrappedIterator<typename vector_type::iterator, Local<T> >

◆ reference

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

◆ size_type

template<typename T >
using v8::LocalVector< T >::size_type = size_t

◆ value_type

template<typename T >
using v8::LocalVector< T >::value_type = Local<T>

Constructor & Destructor Documentation

◆ LocalVector() [1/3]

template<typename T >
v8::LocalVector< T >::LocalVector ( Isolate isolate)
inlineexplicit

◆ LocalVector() [2/3]

template<typename T >
v8::LocalVector< T >::LocalVector ( Isolate isolate,
size_t  n 
)
inline

◆ LocalVector() [3/3]

template<typename T >
v8::LocalVector< T >::LocalVector ( Isolate isolate,
std::initializer_list< Local< T > >  init 
)
inlineexplicit

Member Function Documentation

◆ at() [1/2]

template<typename T >
Local< T > & v8::LocalVector< T >::at ( size_t  n)
inline

◆ at() [2/2]

template<typename T >
const Local< T > & v8::LocalVector< T >::at ( size_t  n) const
inline

◆ back() [1/2]

template<typename T >
Local< T > & v8::LocalVector< T >::back ( )
inline

◆ back() [2/2]

template<typename T >
const Local< T > & v8::LocalVector< T >::back ( ) const
inline

◆ begin() [1/2]

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

◆ begin() [2/2]

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

◆ clear()

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

◆ data() [1/2]

template<typename T >
const Local< T > * v8::LocalVector< T >::data ( ) const
inlinenoexcept

◆ data() [2/2]

template<typename T >
Local< T > * v8::LocalVector< T >::data ( )
inlinenoexcept

◆ emplace_back()

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

◆ empty()

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

◆ end() [1/2]

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

◆ end() [2/2]

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

◆ front() [1/2]

template<typename T >
Local< T > & v8::LocalVector< T >::front ( )
inline

◆ front() [2/2]

template<typename T >
const Local< T > & v8::LocalVector< T >::front ( ) const
inline

◆ insert() [1/3]

template<typename T >
iterator v8::LocalVector< T >::insert ( const_iterator  pos,
const Local< T > &  value 
)
inline
Here is the call graph for this function:

◆ insert() [2/3]

template<typename T >
template<typename InputIt >
iterator v8::LocalVector< T >::insert ( const_iterator  pos,
InputIt  first,
InputIt  last 
)
inline
Here is the call graph for this function:

◆ insert() [3/3]

template<typename T >
iterator v8::LocalVector< T >::insert ( const_iterator  pos,
std::initializer_list< Local< T > >  init 
)
inline
Here is the call graph for this function:

◆ operator=()

template<typename T >
LocalVector< T > & v8::LocalVector< T >::operator= ( std::initializer_list< Local< T > >  init)
inline

◆ operator[]() [1/2]

template<typename T >
Local< T > & v8::LocalVector< T >::operator[] ( size_t  n)
inline

◆ operator[]() [2/2]

template<typename T >
const Local< T > & v8::LocalVector< T >::operator[] ( size_t  n) const
inline

◆ pop_back()

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

◆ push_back()

template<typename T >
void v8::LocalVector< T >::push_back ( const Local< T > &  x)
inline

◆ reserve()

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

◆ resize()

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

◆ shrink_to_fit()

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

◆ size()

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

◆ swap()

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

Friends And Related Function Documentation

◆ operator!=

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

◆ operator<

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

◆ operator<=

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

◆ operator==

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

◆ operator>

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

◆ operator>=

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

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