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

#include <dart_api_state.h>

Inheritance diagram for dart::ApiGrowableArray< T >:
dart::BaseGrowableArray< T, ValueObject, Zone > dart::ValueObject

Public Member Functions

 ApiGrowableArray (int initial_capacity)
 
 ApiGrowableArray ()
 
 ApiGrowableArray (intptr_t initial_capacity, Zone *zone)
 
- Public Member Functions inherited from dart::BaseGrowableArray< T, ValueObject, 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, ValueObject, 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::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Detailed Description

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

Definition at line 679 of file dart_api_state.h.

Constructor & Destructor Documentation

◆ ApiGrowableArray() [1/3]

template<typename T >
dart::ApiGrowableArray< T >::ApiGrowableArray ( int  initial_capacity)
inlineexplicit

Definition at line 681 of file dart_api_state.h.

682 : BaseGrowableArray<T, ValueObject, Zone>(
683 initial_capacity,
684 ApiNativeScope::Current()->zone()) {}
static ApiNativeScope * Current()

◆ ApiGrowableArray() [2/3]

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

Definition at line 685 of file dart_api_state.h.

686 : BaseGrowableArray<T, ValueObject, Zone>(
687 ApiNativeScope::Current()->zone()) {}

◆ ApiGrowableArray() [3/3]

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

Definition at line 688 of file dart_api_state.h.

689 : BaseGrowableArray<T, ValueObject, Zone>(initial_capacity, zone) {}

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