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

#include <growable_array.h>

Inheritance diagram for dart::MallocGrowableArray< T >:
dart::BaseGrowableArray< T, MallocAllocated, Malloc > dart::MallocAllocated

Public Member Functions

 MallocGrowableArray (intptr_t initial_capacity)
 
 MallocGrowableArray ()
 
- Public Member Functions inherited from dart::BaseGrowableArray< T, MallocAllocated, Malloc >
 BaseGrowableArray (Malloc *allocator)
 
 BaseGrowableArray (intptr_t initial_capacity, Malloc *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, MallocAllocated, Malloc > &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::MallocAllocated
 MallocAllocated ()
 
void * operator new (size_t size)
 
void * operator new[] (size_t size)
 
void operator delete (void *pointer)
 
void operator delete[] (void *pointer)
 

Detailed Description

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

Definition at line 274 of file growable_array.h.

Constructor & Destructor Documentation

◆ MallocGrowableArray() [1/2]

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

Definition at line 277 of file growable_array.h.

278 : BaseGrowableArray<T, MallocAllocated, Malloc>(initial_capacity,
279 nullptr) {}

◆ MallocGrowableArray() [2/2]

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

Definition at line 280 of file growable_array.h.

281 : BaseGrowableArray<T, MallocAllocated, Malloc>(nullptr) {}

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