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

#include <zone-list.h>

Inheritance diagram for v8::internal::ZoneList< T >:
Collaboration diagram for v8::internal::ZoneList< T >:

Public Types

using iterator = T*
 
using const_iterator = const T*
 

Public Member Functions

 ZoneList (int capacity, Zone *zone)
 
 ZoneList (const ZoneList< T > &other, Zone *zone)
 
 ZoneList (base::Vector< const T > other, Zone *zone)
 
 ZoneList (ZoneList< T > &&other) V8_NOEXCEPT
 
 ZoneList (const ZoneList &)=delete
 
ZoneListoperator= (const ZoneList &)=delete
 
 ~ZoneList ()=default
 
ZoneListoperator= (ZoneList &&other) V8_NOEXCEPT
 
Toperator[] (int i) const
 
Tat (int i) const
 
Tlast () const
 
Tfirst () const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
V8_INLINE bool is_empty () const
 
V8_INLINE int length () const
 
V8_INLINE int capacity () const
 
base::Vector< TToVector () const
 
base::Vector< TToVector (int start, int length) const
 
base::Vector< const TToConstVector () const
 
void Add (const T &element, Zone *zone)
 
void AddAll (const ZoneList< T > &other, Zone *zone)
 
void AddAll (base::Vector< const T > other, Zone *zone)
 
void InsertAt (int index, const T &element, Zone *zone)
 
base::Vector< TAddBlock (T value, int count, Zone *zone)
 
void Set (int index, const T &element)
 
T Remove (int i)
 
V8_INLINE T RemoveLast ()
 
V8_INLINE void Clear (Zone *zone)
 
V8_INLINE void DropAndClear ()
 
V8_INLINE void Rewind (int pos)
 
bool Contains (const T &elm) const
 
template<class Visitor >
void Iterate (Visitor *visitor)
 
template<typename CompareFunction >
void Sort (CompareFunction cmp)
 
template<typename CompareFunction >
void StableSort (CompareFunction cmp, size_t start, size_t length)
 
- Public Member Functions inherited from v8::internal::ZoneObject
void * operator new (size_t, Zone *)=delete
 
void * operator new (size_t size, void *ptr)
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)=delete
 

Private Member Functions

void ResizeAdd (const T &element, Zone *zone)
 
void ResizeAddInternal (const T &element, Zone *zone)
 
void Resize (int new_capacity, Zone *zone)
 

Private Attributes

Tdata_ = nullptr
 
int capacity_ = 0
 
int length_ = 0
 

Detailed Description

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

Definition at line 18 of file zone-type-traits.h.

Member Typedef Documentation

◆ const_iterator

template<typename T >
using v8::internal::ZoneList< T >::const_iterator = const T*

Definition at line 96 of file zone-list.h.

◆ iterator

template<typename T >
using v8::internal::ZoneList< T >::iterator = T*

Definition at line 92 of file zone-list.h.

Constructor & Destructor Documentation

◆ ZoneList() [1/5]

template<typename T >
v8::internal::ZoneList< T >::ZoneList ( int capacity,
Zone * zone )
inline

Definition at line 35 of file zone-list.h.

Here is the call graph for this function:

◆ ZoneList() [2/5]

template<typename T >
v8::internal::ZoneList< T >::ZoneList ( const ZoneList< T > & other,
Zone * zone )
inline

Definition at line 46 of file zone-list.h.

Here is the call graph for this function:

◆ ZoneList() [3/5]

template<typename T >
v8::internal::ZoneList< T >::ZoneList ( base::Vector< const T > other,
Zone * zone )
inline

Definition at line 52 of file zone-list.h.

Here is the call graph for this function:

◆ ZoneList() [4/5]

template<typename T >
v8::internal::ZoneList< T >::ZoneList ( ZoneList< T > && other)
inline

Definition at line 57 of file zone-list.h.

◆ ZoneList() [5/5]

template<typename T >
v8::internal::ZoneList< T >::ZoneList ( const ZoneList< T > & )
delete

◆ ~ZoneList()

template<typename T >
v8::internal::ZoneList< T >::~ZoneList ( )
default

Member Function Documentation

◆ Add()

template<typename T >
void v8::internal::ZoneList< T >::Add ( const T & element,
Zone * zone )

Definition at line 19 of file zone-list-inl.h.

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

◆ AddAll() [1/2]

template<typename T >
void v8::internal::ZoneList< T >::AddAll ( base::Vector< const T > other,
Zone * zone )

Definition at line 33 of file zone-list-inl.h.

◆ AddAll() [2/2]

template<typename T >
void v8::internal::ZoneList< T >::AddAll ( const ZoneList< T > & other,
Zone * zone )

Definition at line 28 of file zone-list-inl.h.

Here is the caller graph for this function:

◆ AddBlock()

template<typename T >
base::Vector< T > v8::internal::ZoneList< T >::AddBlock ( T value,
int count,
Zone * zone )

Definition at line 84 of file zone-list-inl.h.

◆ at()

template<typename T >
T & v8::internal::ZoneList< T >::at ( int i) const
inline

Definition at line 88 of file zone-list.h.

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

◆ begin() [1/2]

template<typename T >
iterator v8::internal::ZoneList< T >::begin ( )
inline

Definition at line 93 of file zone-list.h.

Here is the caller graph for this function:

◆ begin() [2/2]

template<typename T >
const_iterator v8::internal::ZoneList< T >::begin ( ) const
inline

Definition at line 97 of file zone-list.h.

◆ capacity()

template<typename T >
V8_INLINE int v8::internal::ZoneList< T >::capacity ( ) const
inline

Definition at line 102 of file zone-list.h.

Here is the caller graph for this function:

◆ Clear()

template<typename T >
void v8::internal::ZoneList< T >::Clear ( Zone * zone)

Definition at line 118 of file zone-list-inl.h.

◆ Contains()

template<typename T >
bool v8::internal::ZoneList< T >::Contains ( const T & elm) const
inline

Definition at line 159 of file zone-list.h.

◆ DropAndClear()

template<typename T >
V8_INLINE void v8::internal::ZoneList< T >::DropAndClear ( )
inline

Definition at line 150 of file zone-list.h.

◆ end() [1/2]

template<typename T >
iterator v8::internal::ZoneList< T >::end ( )
inline

Definition at line 94 of file zone-list.h.

Here is the caller graph for this function:

◆ end() [2/2]

template<typename T >
const_iterator v8::internal::ZoneList< T >::end ( ) const
inline

Definition at line 98 of file zone-list.h.

◆ first()

template<typename T >
T & v8::internal::ZoneList< T >::first ( ) const
inline

Definition at line 90 of file zone-list.h.

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

◆ InsertAt()

template<typename T >
void v8::internal::ZoneList< T >::InsertAt ( int index,
const T & element,
Zone * zone )

Definition at line 97 of file zone-list-inl.h.

◆ is_empty()

template<typename T >
V8_INLINE bool v8::internal::ZoneList< T >::is_empty ( ) const
inline

Definition at line 100 of file zone-list.h.

Here is the caller graph for this function:

◆ Iterate()

template<typename T >
template<class Visitor >
void v8::internal::ZoneList< T >::Iterate ( Visitor * visitor)

Definition at line 131 of file zone-list-inl.h.

◆ last()

template<typename T >
T & v8::internal::ZoneList< T >::last ( ) const
inline

Definition at line 89 of file zone-list.h.

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

◆ length()

template<typename T >
V8_INLINE int v8::internal::ZoneList< T >::length ( ) const
inline

Definition at line 101 of file zone-list.h.

Here is the caller graph for this function:

◆ operator=() [1/2]

template<typename T >
ZoneList & v8::internal::ZoneList< T >::operator= ( const ZoneList< T > & )
delete

◆ operator=() [2/2]

template<typename T >
ZoneList & v8::internal::ZoneList< T >::operator= ( ZoneList< T > && other)
inline

Definition at line 67 of file zone-list.h.

◆ operator[]()

template<typename T >
T & v8::internal::ZoneList< T >::operator[] ( int i) const
inline

Definition at line 83 of file zone-list.h.

Here is the caller graph for this function:

◆ Remove()

template<typename T >
T v8::internal::ZoneList< T >::Remove ( int i)

Definition at line 107 of file zone-list-inl.h.

Here is the caller graph for this function:

◆ RemoveLast()

template<typename T >
V8_INLINE T v8::internal::ZoneList< T >::RemoveLast ( )
inline

Definition at line 140 of file zone-list.h.

Here is the call graph for this function:

◆ Resize()

template<typename T >
void v8::internal::ZoneList< T >::Resize ( int new_capacity,
Zone * zone )
private

Definition at line 68 of file zone-list-inl.h.

Here is the call graph for this function:

◆ ResizeAdd()

template<typename T >
void v8::internal::ZoneList< T >::ResizeAdd ( const T & element,
Zone * zone )
private

Definition at line 50 of file zone-list-inl.h.

Here is the caller graph for this function:

◆ ResizeAddInternal()

template<typename T >
void v8::internal::ZoneList< T >::ResizeAddInternal ( const T & element,
Zone * zone )
private

Definition at line 55 of file zone-list-inl.h.

◆ Rewind()

template<typename T >
void v8::internal::ZoneList< T >::Rewind ( int pos)

Definition at line 124 of file zone-list-inl.h.

Here is the caller graph for this function:

◆ Set()

template<typename T >
void v8::internal::ZoneList< T >::Set ( int index,
const T & element )

Definition at line 91 of file zone-list-inl.h.

Here is the caller graph for this function:

◆ Sort()

template<typename T >
template<typename CompareFunction >
void v8::internal::ZoneList< T >::Sort ( CompareFunction cmp)

Definition at line 137 of file zone-list-inl.h.

◆ StableSort()

template<typename T >
template<typename CompareFunction >
void v8::internal::ZoneList< T >::StableSort ( CompareFunction cmp,
size_t start,
size_t length )

Definition at line 149 of file zone-list-inl.h.

◆ ToConstVector()

template<typename T >
base::Vector< const T > v8::internal::ZoneList< T >::ToConstVector ( ) const
inline

Definition at line 110 of file zone-list.h.

Here is the caller graph for this function:

◆ ToVector() [1/2]

template<typename T >
base::Vector< T > v8::internal::ZoneList< T >::ToVector ( ) const
inline

Definition at line 104 of file zone-list.h.

◆ ToVector() [2/2]

template<typename T >
base::Vector< T > v8::internal::ZoneList< T >::ToVector ( int start,
int length ) const
inline

Definition at line 105 of file zone-list.h.

Member Data Documentation

◆ capacity_

template<typename T >
int v8::internal::ZoneList< T >::capacity_ = 0
private

Definition at line 178 of file zone-list.h.

◆ data_

template<typename T >
T* v8::internal::ZoneList< T >::data_ = nullptr
private

Definition at line 177 of file zone-list.h.

◆ length_

template<typename T >
int v8::internal::ZoneList< T >::length_ = 0
private

Definition at line 179 of file zone-list.h.


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