Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::GrowableArray< T > Class Template Reference

#include <growable_array.h>

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

Public Member Functions

 GrowableArray (Zone *zone, intptr_t initial_capacity)
 
 GrowableArray (intptr_t initial_capacity)
 
 GrowableArray ()
 
 GrowableArray (std::initializer_list< T > values)
 
 GrowableArray (GrowableArray &&other)=default
 
GrowableArrayoperator= (GrowableArray &&other)=default
 
 ~GrowableArray ()=default
 
 DISALLOW_COPY_AND_ASSIGN (GrowableArray)
 
- 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::GrowableArray< T >

Definition at line 22 of file growable_array.h.

Constructor & Destructor Documentation

◆ GrowableArray() [1/5]

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

Definition at line 24 of file growable_array.h.

25 : BaseGrowableArray<T, ValueObject, Zone>(initial_capacity,
26 ASSERT_NOTNULL(zone)) {}
#define ASSERT_NOTNULL(ptr)
Definition: assert.h:323

◆ GrowableArray() [2/5]

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

Definition at line 27 of file growable_array.h.

28 : BaseGrowableArray<T, ValueObject, Zone>(
29 initial_capacity,
static ThreadState * Current()
Definition: thread_state.h:27

◆ GrowableArray() [3/5]

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

Definition at line 31 of file growable_array.h.

32 : BaseGrowableArray<T, ValueObject, Zone>(

◆ GrowableArray() [4/5]

template<typename T >
dart::GrowableArray< T >::GrowableArray ( std::initializer_list< T values)
inline

Definition at line 35 of file growable_array.h.

36 : BaseGrowableArray<T, ValueObject, Zone>(
37 values.size(),
39 for (auto& value : values) {
40 this->Add(value);
41 }
42 }
uint8_t value

◆ GrowableArray() [5/5]

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

◆ ~GrowableArray()

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

Member Function Documentation

◆ DISALLOW_COPY_AND_ASSIGN()

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

◆ operator=()

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

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