Documentation

CArrayFloat

CArrayFloat class is a class of dynamic array of variables of type float.

Description

Class CArrayFloat provides the ability to work with a dynamic array of variables of type float.In the class implemented the ability to add / insert / delete elements in an array, sort array, searching in sorted array.In addition, the implemented methods of work with the file.

Declaration

   class CArrayFloat : public CArray

Title

   #include <Arrays\ArrayFloat.mqh>

Class Methods

Attributes

 

Delta

Set the comparison tolerance

Memory control

 

Reserve

Allocates memory to increase the size of the array

Resize

Sets a new (smaller) size of the array

Shutdown

Clears the array with a full memory release

Add methods

 

Add

Adds an element to the end of the array

AddArray

Adds to the end of the array elements from another array

AddArray

Adds to the end of the array elements from another array

Insert

Inserts an element in the array to the specified position

InsertArray

Inserts an array of elements from another array with the specified position

InsertArray

Inserts an array of elements from another array with the specified position

AssignArray

Copies the array elements from another array

AssignArray

Copies the array elements from another array

Update methods

 

Update

Changes the element at the specified position array

Shift

Moves an item from a given position in the array to the specified offset

Delete

Removes the element from the specified position array

DeleteRange

Deletes a group of elements from the specified position array

Access methods

 

At

Gets the element from the specified position array

Compare methods

 

CompareArray

Compares array with another array

CompareArray

Compares array with another array

Sorted array operations

 

InsertSort

Inserts element in a sorted array

Search

Searches for an element equal to the model in sorted array

SearchGreat

Searches for an element of more samples in sorted array

SearchLess

Searches for an element less than the sample in the sorted array

SearchGreatOrEqual

Searches for an element greater than or equal to the model in sorted array

SearchLessOrEqual

Searches for an element less than or equal to the model in sorted array

SearchFirst

Finds the first element equal to the model in sorted array

SearchLast

Finds the last element equal to the model in sorted array

Input/output

 

virtual Save

Saves data array in the file

virtual Load

Loads data array from a file

virtual Type

Gets the type identifier of the array