Library for MQL5 (MetaTrader) with support for Spark
|
ArrayList from Java for Class only.
Public Member Functions | |
CArrayListClass (bool _useDelete=true, int _reserve=0) | |
~CArrayListClass () | |
int | getReserve () |
void | setReserve (int _reserve) |
bool | getUseDelete () |
Use delete() when cleaning? More... | |
void | setUseDelete (bool _useDelete) |
Use delete() when cleaning? More... | |
bool | add (Type *element) |
Appends the specified element to the end of this list. More... | |
bool | add (int index, Type *element) |
Inserts the specified element at the specified position in this list. More... | |
bool | addAll (const Type *&list[]) |
Appends all of the elements in the specified collection to the end of this list. More... | |
bool | addAll (const CArrayListClass< Type > &list) |
Appends all of the elements in the specified collection to the end of this list. More... | |
bool | addAll (int index, const Type *const &list[]) |
Inserts all of the elements in the specified collection into this list, starting at the specified position. More... | |
bool | addAll (int index, const CArrayListClass< Type > &list) |
Inserts all of the elements in the specified collection into this list, starting at the specified position. More... | |
void | clear () |
Removes all of the elements from this list. More... | |
Type * | get (int index) |
Returns the element at the specified position in this list. More... | |
Type * | operator[] (int index) |
Returns the element at the specified position in this list. More... | |
void | set (int index, Type *element) |
Replaces the element at the specified position in this list with the specified element. More... | |
bool | isEmpty () |
Returns true if this list contains no elements. More... | |
void | remove (int index) |
Removes the element at the specified position in this list. More... | |
int | size () |
Returns the number of elements in this list. More... | |
int | subList (Type *&dst_array[], int dst_start=0, int src_start=0, int count=WHOLE_ARRAY) |
void | toArray (Type *&dst_array[]) |
Returns an array containing all of the elements in this list in proper sequence (from first to last element). More... | |
Protected Attributes | |
Type * | elements [] |
int | reserve |
bool | useDelete |
Use delete() when cleaning? More... | |
CArrayListClass< Type >::CArrayListClass | ( | bool | _useDelete = true , |
int | _reserve = 0 |
||
) |
CArrayListClass< Type >::~CArrayListClass | ( | ) |
bool CArrayListClass< Type >::add | ( | Type * | element | ) |
Appends the specified element to the end of this list.
bool CArrayListClass< Type >::add | ( | int | index, |
Type * | element | ||
) |
Inserts the specified element at the specified position in this list.
bool CArrayListClass< Type >::addAll | ( | const Type *& | list[] | ) |
Appends all of the elements in the specified collection to the end of this list.
bool CArrayListClass< Type >::addAll | ( | const CArrayListClass< Type > & | list | ) |
Appends all of the elements in the specified collection to the end of this list.
bool CArrayListClass< Type >::addAll | ( | int | index, |
const Type *const & | list[] | ||
) |
Inserts all of the elements in the specified collection into this list, starting at the specified position.
bool CArrayListClass< Type >::addAll | ( | int | index, |
const CArrayListClass< Type > & | list | ||
) |
Inserts all of the elements in the specified collection into this list, starting at the specified position.
void CArrayListClass< Type >::clear | ( | ) |
Removes all of the elements from this list.
Type* CArrayListClass< Type >::get | ( | int | index | ) |
Returns the element at the specified position in this list.
int CArrayListClass< Type >::getReserve | ( | ) |
bool CArrayListClass< Type >::getUseDelete | ( | ) |
Use delete() when cleaning?
bool CArrayListClass< Type >::isEmpty | ( | ) |
Returns true if this list contains no elements.
Type* CArrayListClass< Type >::operator[] | ( | int | index | ) |
Returns the element at the specified position in this list.
void CArrayListClass< Type >::remove | ( | int | index | ) |
Removes the element at the specified position in this list.
void CArrayListClass< Type >::set | ( | int | index, |
Type * | element | ||
) |
Replaces the element at the specified position in this list with the specified element.
void CArrayListClass< Type >::setReserve | ( | int | _reserve | ) |
void CArrayListClass< Type >::setUseDelete | ( | bool | _useDelete | ) |
Use delete() when cleaning?
int CArrayListClass< Type >::size | ( | ) |
Returns the number of elements in this list.
int CArrayListClass< Type >::subList | ( | Type *& | dst_array[], |
int | dst_start = 0 , |
||
int | src_start = 0 , |
||
int | count = WHOLE_ARRAY |
||
) |
void CArrayListClass< Type >::toArray | ( | Type *& | dst_array[] | ) |
Returns an array containing all of the elements in this list in proper sequence (from first to last element).
|
protected |
|
protected |
|
protected |
Use delete() when cleaning?