Library for MQL5 (MetaTrader) with support for Spark
|
Macros | |
#define | CArrayListInit(Type) |
#define | CArrayListClassInit(Type) |
Functions | |
bool | add (const Type element) |
Appends the specified element to the end of this list. More... | |
bool | add (int index, const 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 CArrayList_##Type &list) |
bool | addAll (int index, const Type &list[]) |
Inserts all of the elements in the specified collection into this list,. More... | |
bool | addAll (int index, const CArrayList_##Type &list) |
void | clear () |
Removes all of the elements from this list. More... | |
bool | contains (const Type o) |
Returns a shallow copy of this ArrayList instance. More... | |
Type | get (int index) |
Increases the capacity of this ArrayList instance, if necessary,. More... | |
Type | operator[] (int index) |
Type | set (int index, const Type element) |
Replaces the element at the specified position in this list with the specified element. More... | |
int | indexOf (const Type o) |
Returns the index of the first occurrence of the specified element in this list,. More... | |
int | lastIndexOf (const Type o) |
Returns the index of the last occurrence of the specified element in this list,. More... | |
bool | isEmpty () |
Returns true if this list contains no elements. More... | |
Type | remove (int index) |
Removes the element at the specified position in this list. More... | |
bool | removeFirst (const Type o) |
Removes the first occurrence of the specified element from this list, if it is present. More... | |
bool | removeAll (const Type &list[]) |
Removes from this list all of its elements that are contained in the specified collection. More... | |
bool | retainAll (const Type &list[]) |
Retains only the elements in this list that are contained in the specified collection. More... | |
int | size () |
Removes all of the elements of this collection that satisfy the given predicate. More... | |
int | subList (Type &dst_array[], int dst_start=0, int src_start=0, int count=WHOLE_ARRAY) |
Sorts this list according to the order induced by the specified Comparator. More... | |
void | toArray (Type &dst_array[]) |
Returns an array containing all of the elements in this list in proper sequence. More... | |
int | getReserve () |
void | setReserve (int _reserve) |
bool | getUseDelete () |
void | setUseDelete (bool _use_delete) |
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) |
bool | addAll (int index, const Type *&list[]) |
Inserts all of the elements in the specified collection into this list,. More... | |
bool | addAll (int index, const CArrayListClass_##Type &list) |
void | set (int index, Type *element) |
Replaces the element at the specified position in this list with the specified element. 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. More... | |
Variables | |
CArrayListClass_ | |
use_delete = _use_delete | |
~CArrayListClass_ | |
#define CArrayListClassInit | ( | Type | ) |
#define CArrayListInit | ( | Type | ) |
bool add | ( | const Type | element | ) |
Appends the specified element to the end of this list.
bool add | ( | int | index, |
const Type | element | ||
) |
Inserts the specified element at the specified position in this list.
bool add | ( | Type * | element | ) |
Appends the specified element to the end of this list.
bool add | ( | int | index, |
Type * | element | ||
) |
Inserts the specified element at the specified position in this list.
bool addAll | ( | const Type & | list[] | ) |
Appends all of the elements in the specified collection to the end of this list.
bool addAll | ( | const CArrayList_##Type & | list | ) |
bool addAll | ( | int | index, |
const Type & | list[] | ||
) |
Inserts all of the elements in the specified collection into this list,.
starting at the specified position.
bool addAll | ( | int | index, |
const CArrayList_##Type & | list | ||
) |
bool addAll | ( | const Type *& | list[] | ) |
Appends all of the elements in the specified collection to the end of this list.
bool addAll | ( | const CArrayListClass_##Type & | list | ) |
bool addAll | ( | int | index, |
const Type *& | list[] | ||
) |
Inserts all of the elements in the specified collection into this list,.
starting at the specified position.
bool addAll | ( | int | index, |
const CArrayListClass_##Type & | list | ||
) |
void clear | ( | ) |
Removes all of the elements from this list.
bool contains | ( | const Type | o | ) |
Returns a shallow copy of this ArrayList instance.
Returns true if this list contains the specified element.
Type * get | ( | int | index | ) |
Increases the capacity of this ArrayList instance, if necessary,.
Returns a shallow copy of this ArrayList instance.
to ensure that it can hold at least the number of elements specified by the minimum capacity argument. Performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception. Returns the element at the specified position in this list.
Increases the capacity of this ArrayList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument. Performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception. Returns the element at the specified position in this list.
int getReserve | ( | ) |
bool getUseDelete | ( | ) |
int indexOf | ( | const Type | o | ) |
Returns the index of the first occurrence of the specified element in this list,.
or -1 if this list does not contain the element.
bool isEmpty | ( | ) |
Returns true if this list contains no elements.
int lastIndexOf | ( | const Type | o | ) |
Returns the index of the last occurrence of the specified element in this list,.
or -1 if this list does not contain the element.
Type * operator[] | ( | int | index | ) |
void remove | ( | int | index | ) |
Removes the element at the specified position in this list.
bool removeAll | ( | const Type & | list[] | ) |
Removes from this list all of its elements that are contained in the specified collection.
bool removeFirst | ( | const Type | o | ) |
Removes the first occurrence of the specified element from this list, if it is present.
bool retainAll | ( | const Type & | list[] | ) |
Retains only the elements in this list that are contained in the specified collection.
Type set | ( | int | index, |
const Type | element | ||
) |
Replaces the element at the specified position in this list with the specified element.
void set | ( | int | index, |
Type * | element | ||
) |
Replaces the element at the specified position in this list with the specified element.
void setReserve | ( | int | _reserve | ) |
void setUseDelete | ( | bool | _use_delete | ) |
int size | ( | ) |
Removes all of the elements of this collection that satisfy the given predicate.
Returns the number of elements in this list.
Removes from this list all of the elements whose index is between fromIndex, inclusive, and toIndex, exclusive. Replaces each element of this list with the result of applying the operator to that element. Returns the number of elements in this list.
int subList | ( | Type & | dst_array[], |
int | dst_start = 0 , |
||
int | src_start = 0 , |
||
int | count = WHOLE_ARRAY |
||
) |
Sorts this list according to the order induced by the specified Comparator.
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).
void toArray | ( | Type *& | dst_array[] | ) |
Returns an array containing all of the elements in this list in proper sequence.
(from first to last element).
CArrayListClass_ |
use_delete = _use_delete |