Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::ZoneGrowableArray< T > Class Template Reference

#include <growable_array.h>

Inheritance diagram for dart::ZoneGrowableArray< T >:
dart::BaseGrowableArray< T, ZoneAllocated, Zone > dart::ZoneAllocated

Public Member Functions

 ZoneGrowableArray (Zone *zone, intptr_t initial_capacity)
 
 ZoneGrowableArray (intptr_t initial_capacity)
 
 ZoneGrowableArray ()
 
 ZoneGrowableArray (ZoneGrowableArray &&other)=default
 
ZoneGrowableArrayoperator= (ZoneGrowableArray &&other)=default
 
 ~ZoneGrowableArray ()=default
 
 DISALLOW_COPY_AND_ASSIGN (ZoneGrowableArray)
 
- Public Member Functions inherited from dart::BaseGrowableArray< T, ZoneAllocated, Zone >
 BaseGrowableArray (Zone *allocator)
 
 BaseGrowableArray (intptr_t initial_capacity, Zone *allocator)
 
 BaseGrowableArray (BaseGrowableArray &&other)
 
 ~BaseGrowableArray ()
 
BaseGrowableArrayoperator= (BaseGrowableArray &&other)
 
intptr_t length () const
 
Tdata () const
 
bool is_empty () const
 
void TruncateTo (intptr_t length)
 
bool Contains (const T &other, bool isEqual(const T &, const T &)=nullptr) const
 
void Add (const T &value)
 
TRemoveLast ()
 
Toperator[] (intptr_t index) const
 
void FillWith (const T &value, intptr_t start, intptr_t length)
 
void EnsureLength (intptr_t new_length, const T &default_value)
 
const TAt (intptr_t index) const
 
TLast () const
 
void AddArray (const BaseGrowableArray< T, ZoneAllocated, Zone > &src)
 
void Clear ()
 
void InsertAt (intptr_t idx, const T &value)
 
void Reverse ()
 
void Swap (intptr_t i, intptr_t j)
 
void RemoveAt (intptr_t i)
 
void EraseAt (intptr_t idx)
 
void SetLength (intptr_t new_length)
 
void Resize (intptr_t new_length)
 
void Sort (int compare(const T *, const T *))
 
void StealBuffer (T **buffer, intptr_t *length)
 
Tbegin ()
 
const Tbegin () const
 
Tend ()
 
const Tend () const
 
- Public Member Functions inherited from dart::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Detailed Description

template<typename T>
class dart::ZoneGrowableArray< T >

Definition at line 51 of file growable_array.h.

Constructor & Destructor Documentation

◆ ZoneGrowableArray() [1/4]

template<typename T >
dart::ZoneGrowableArray< T >::ZoneGrowableArray ( Zone zone,
intptr_t  initial_capacity 
)
inline

Definition at line 53 of file growable_array.h.

54 : BaseGrowableArray<T, ZoneAllocated, Zone>(initial_capacity,
55 ASSERT_NOTNULL(zone)) {}
#define ASSERT_NOTNULL(ptr)
Definition assert.h:323

◆ ZoneGrowableArray() [2/4]

template<typename T >
dart::ZoneGrowableArray< T >::ZoneGrowableArray ( intptr_t  initial_capacity)
inlineexplicit

Definition at line 56 of file growable_array.h.

57 : BaseGrowableArray<T, ZoneAllocated, Zone>(
58 initial_capacity,
static ThreadState * Current()

◆ ZoneGrowableArray() [3/4]

template<typename T >
dart::ZoneGrowableArray< T >::ZoneGrowableArray ( )
inline

Definition at line 60 of file growable_array.h.

61 : BaseGrowableArray<T, ZoneAllocated, Zone>(

◆ ZoneGrowableArray() [4/4]

template<typename T >
dart::ZoneGrowableArray< T >::ZoneGrowableArray ( ZoneGrowableArray< T > &&  other)
default

◆ ~ZoneGrowableArray()

template<typename T >
dart::ZoneGrowableArray< T >::~ZoneGrowableArray ( )
default

Member Function Documentation

◆ DISALLOW_COPY_AND_ASSIGN()

template<typename T >
dart::ZoneGrowableArray< T >::DISALLOW_COPY_AND_ASSIGN ( ZoneGrowableArray< T )

◆ operator=()

template<typename T >
ZoneGrowableArray & dart::ZoneGrowableArray< T >::operator= ( ZoneGrowableArray< T > &&  other)
default

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