Skip to content

CArray

CArray

CArray class is the base class of a dynamic array of variables.

Description

Class CArray is intended to operate on dynamic arrays of variables: memory allocation, sorting, and working with files.

Declaration

class CArray : public CObject

Title

#include <Arrays\Array.mqh>

Inheritance hierarchy

CObject

CArray

Direct descendants

: CArrayChar, CArrayDouble, CArrayFloat, CArrayInt, CArrayLong, CArrayObj, CArrayShort, CArrayString

Class Methods by Groups

Attributes
StepGets the increment size of the array
StepSets the increment size of the array
TotalGets the number of elements in the array
AvailableGets the number of free elements of the array that are available without additional memory allocation
MaxGets the maximum possible size of the array without memory reallocation
IsSortedGets the flag of array being sorted using specified sorting mode
SortModeGets the sorting mode for an array
Clear methods
ClearDeletes all of the array elements without memory release
Sort methods
SortSorts an array to the specified option
Input/output
virtual SaveSaves data array in a file
virtual LoadLoads data array from a file

Methods inherited from class CObject

: Prev, Prev, Next, Next, Type, Compare

Last updated on