v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
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 ()
 
void emplace_back (const Local< T > &x)
 
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)
 

Detailed Description

template<typename T>
class v8::LocalVector< T >

Definition at line 481 of file v8-local-handle.h.

Member Typedef Documentation

◆ const_iterator

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

Definition at line 509 of file v8-local-handle.h.

◆ const_reference

template<typename T >
using const_reference = const value_type&

Definition at line 504 of file v8-local-handle.h.

◆ difference_type

template<typename T >
using difference_type = ptrdiff_t

Definition at line 506 of file v8-local-handle.h.

◆ iterator

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

Definition at line 507 of file v8-local-handle.h.

◆ reference

template<typename T >
using reference = value_type&

Definition at line 503 of file v8-local-handle.h.

◆ size_type

template<typename T >
using size_type = size_t

Definition at line 505 of file v8-local-handle.h.

◆ value_type

template<typename T >
using value_type = Local<T>

Definition at line 502 of file v8-local-handle.h.

Constructor & Destructor Documentation

◆ LocalVector() [1/3]

template<typename T >
LocalVector ( Isolate isolate)
inlineexplicit

Definition at line 513 of file v8-local-handle.h.

◆ LocalVector() [2/3]

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

Definition at line 514 of file v8-local-handle.h.

◆ LocalVector() [3/3]

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

Definition at line 516 of file v8-local-handle.h.

Member Function Documentation

◆ at() [1/2]

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

Definition at line 538 of file v8-local-handle.h.

◆ at() [2/2]

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

Definition at line 539 of file v8-local-handle.h.

◆ back() [1/2]

template<typename T >
Local< T > & back ( )
inline

Definition at line 543 of file v8-local-handle.h.

◆ back() [2/2]

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

Definition at line 544 of file v8-local-handle.h.

◆ begin() [1/2]

template<typename T >
const_iterator begin ( ) const
inlinenoexcept

Definition at line 524 of file v8-local-handle.h.

◆ begin() [2/2]

template<typename T >
iterator begin ( )
inlinenoexcept

Definition at line 523 of file v8-local-handle.h.

◆ clear()

template<typename T >
void clear ( )
inlinenoexcept

Definition at line 572 of file v8-local-handle.h.

◆ data() [1/2]

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

Definition at line 547 of file v8-local-handle.h.

◆ data() [2/2]

template<typename T >
Local< T > * data ( )
inlinenoexcept

Definition at line 546 of file v8-local-handle.h.

◆ emplace_back()

template<typename T >
void emplace_back ( const Local< T > &  x)
inline

Definition at line 570 of file v8-local-handle.h.

◆ empty()

template<typename T >
bool empty ( ) const
inlinenoexcept

Definition at line 531 of file v8-local-handle.h.

◆ end() [1/2]

template<typename T >
const_iterator end ( ) const
inlinenoexcept

Definition at line 528 of file v8-local-handle.h.

◆ end() [2/2]

template<typename T >
iterator end ( )
inlinenoexcept

Definition at line 527 of file v8-local-handle.h.

◆ front() [1/2]

template<typename T >
Local< T > & front ( )
inline

Definition at line 541 of file v8-local-handle.h.

◆ front() [2/2]

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

Definition at line 542 of file v8-local-handle.h.

◆ insert() [1/3]

template<typename T >
iterator insert ( const_iterator  pos,
const Local< T > &  value 
)
inline

◆ insert() [2/3]

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

◆ insert() [3/3]

template<typename T >
iterator insert ( const_iterator  pos,
std::initializer_list< Local< T > >  init 
)
inline

◆ operator=()

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

Definition at line 562 of file v8-local-handle.h.

◆ operator[]() [1/2]

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

Definition at line 535 of file v8-local-handle.h.

◆ operator[]() [2/2]

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

Definition at line 536 of file v8-local-handle.h.

◆ pop_back()

template<typename T >
void pop_back ( )
inline

Definition at line 569 of file v8-local-handle.h.

◆ push_back()

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

Definition at line 568 of file v8-local-handle.h.

◆ reserve()

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

Definition at line 532 of file v8-local-handle.h.

◆ resize()

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

Definition at line 573 of file v8-local-handle.h.

◆ shrink_to_fit()

template<typename T >
void shrink_to_fit ( )
inline

Definition at line 533 of file v8-local-handle.h.

◆ size()

template<typename T >
size_t size ( ) const
inlinenoexcept

Definition at line 530 of file v8-local-handle.h.

◆ swap()

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

Definition at line 574 of file v8-local-handle.h.

Friends And Related Symbol Documentation

◆ operator!=

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

Definition at line 579 of file v8-local-handle.h.

◆ operator<

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

Definition at line 582 of file v8-local-handle.h.

◆ operator<=

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

Definition at line 588 of file v8-local-handle.h.

◆ operator==

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

Definition at line 576 of file v8-local-handle.h.

◆ operator>

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

Definition at line 585 of file v8-local-handle.h.

◆ operator>=

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

Definition at line 591 of file v8-local-handle.h.


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