This commit is contained in:
Nkondog Anselme
2021-11-14 08:19:13 +01:00
parent 0b5d6a5a00
commit ad2fa91937
250 changed files with 213363 additions and 0 deletions
@@ -0,0 +1,24 @@
//+------------------------------------------------------------------+
//| ICollection.mqh |
//| Copyright 2016-2017, MetaQuotes Software Corp. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
//| Interface ICollection<T>. |
//| Usage: Defines methods to manipulate generic collections. |
//+------------------------------------------------------------------+
template<typename T>
interface ICollection
{
//--- methods of filling data
bool Add(T value);
//--- methods of access to protected data
int Count(void);
bool Contains(T item);
//--- methods of copy data from collection
int CopyTo(T &dst_array[],const int dst_start=0);
//--- methods of cleaning and removing
void Clear(void);
bool Remove(T item);
};
//+------------------------------------------------------------------+