Consolidate Python ignore rules into root gitignore
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
//+------------------------------------------------------------------+
|
||||
//| ICollection.mqh |
|
||||
//| Copyright 2000-2026, MetaQuotes Ltd. |
|
||||
//| 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);
|
||||
};
|
||||
//+------------------------------------------------------------------+
|
||||
@@ -0,0 +1,19 @@
|
||||
//+------------------------------------------------------------------+
|
||||
//| IComparable.mqh |
|
||||
//| Copyright 2000-2026, MetaQuotes Ltd. |
|
||||
//| www.mql5.com |
|
||||
//+------------------------------------------------------------------+
|
||||
#include "IEqualityComparable.mqh"
|
||||
//+------------------------------------------------------------------+
|
||||
//| Interface IComparable<T>. |
|
||||
//| Usage: Defines a generalized comparison method to create a |
|
||||
//| type-specific comparison method for ordering or sorting |
|
||||
//| instances. |
|
||||
//+------------------------------------------------------------------+
|
||||
template<typename T>
|
||||
interface IComparable: public IEqualityComparable<T>
|
||||
{
|
||||
//--- method for determining compare
|
||||
int Compare(T value);
|
||||
};
|
||||
//+------------------------------------------------------------------+
|
||||
@@ -0,0 +1,17 @@
|
||||
//+------------------------------------------------------------------+
|
||||
//| IComparer.mqh |
|
||||
//| Copyright 2000-2026, MetaQuotes Ltd. |
|
||||
//| www.mql5.com |
|
||||
//+------------------------------------------------------------------+
|
||||
//+------------------------------------------------------------------+
|
||||
//| Interface IComparer<T>. |
|
||||
//| Usage: Defines a method that a type implements to compare two |
|
||||
//| values. |
|
||||
//+------------------------------------------------------------------+
|
||||
template<typename T>
|
||||
interface IComparer
|
||||
{
|
||||
//--- compares two values and returns a value indicating whether one is less than, equal to, or greater than the other
|
||||
int Compare(T x,T y);
|
||||
};
|
||||
//+------------------------------------------------------------------+
|
||||
@@ -0,0 +1,19 @@
|
||||
//+------------------------------------------------------------------+
|
||||
//| IEqualityComparable.mqh |
|
||||
//| Copyright 2000-2026, MetaQuotes Ltd. |
|
||||
//| www.mql5.com |
|
||||
//+------------------------------------------------------------------+
|
||||
//+------------------------------------------------------------------+
|
||||
//| Interface IEqualityComparable<T>. |
|
||||
//| Usage: Defines a generalized method to create a type-specific |
|
||||
//| method for determining equality of instances. |
|
||||
//+------------------------------------------------------------------+
|
||||
template<typename T>
|
||||
interface IEqualityComparable
|
||||
{
|
||||
//--- method for determining equality
|
||||
bool Equals(T value);
|
||||
//--- method to calculate hash code
|
||||
int HashCode(void);
|
||||
};
|
||||
//+------------------------------------------------------------------+
|
||||
@@ -0,0 +1,19 @@
|
||||
//+------------------------------------------------------------------+
|
||||
//| IEqualityComparer.mqh |
|
||||
//| Copyright 2000-2026, MetaQuotes Ltd. |
|
||||
//| www.mql5.com |
|
||||
//+------------------------------------------------------------------+
|
||||
//+------------------------------------------------------------------+
|
||||
//| Interface IEqualityComparer<T>. |
|
||||
//| Usage: Defines methods to support the comparison of values for |
|
||||
//| equality. |
|
||||
//+------------------------------------------------------------------+
|
||||
template<typename T>
|
||||
interface IEqualityComparer
|
||||
{
|
||||
//--- determines whether the specified values are equal
|
||||
bool Equals(T x,T y);
|
||||
//--- returns a hash code for the specified object
|
||||
int HashCode(T value);
|
||||
};
|
||||
//+------------------------------------------------------------------+
|
||||
@@ -0,0 +1,26 @@
|
||||
//+------------------------------------------------------------------+
|
||||
//| IList.mqh |
|
||||
//| Copyright 2000-2026, MetaQuotes Ltd. |
|
||||
//| www.mql5.com |
|
||||
//+------------------------------------------------------------------+
|
||||
#include "ICollection.mqh"
|
||||
//+------------------------------------------------------------------+
|
||||
//| Interface IList<T>. |
|
||||
//| Usage: Represents a collection of objects that can be |
|
||||
//| individually accessed by index. |
|
||||
//+------------------------------------------------------------------+
|
||||
template<typename T>
|
||||
interface IList: public ICollection<T>
|
||||
{
|
||||
//--- method of access to the data
|
||||
bool TryGetValue(const int index,T &value);
|
||||
bool TrySetValue(const int index,T value);
|
||||
//--- methods of filling the array
|
||||
bool Insert(const int index,T item);
|
||||
//--- methods for searching index
|
||||
int IndexOf(T item);
|
||||
int LastIndexOf(T item);
|
||||
//--- methods of cleaning and deleting
|
||||
bool RemoveAt(const int index);
|
||||
};
|
||||
//+------------------------------------------------------------------+
|
||||
@@ -0,0 +1,27 @@
|
||||
//+------------------------------------------------------------------+
|
||||
//| IMap.mqh |
|
||||
//| Copyright 2000-2026, MetaQuotes Ltd. |
|
||||
//| www.mql5.com |
|
||||
//+------------------------------------------------------------------+
|
||||
#include "ICollection.mqh"
|
||||
template<typename TKey,typename TValue>
|
||||
class CKeyValuePair;
|
||||
//+------------------------------------------------------------------+
|
||||
//| Interface IMap<TKey,TValue>. |
|
||||
//| Usage: Represents a generic collection of key/value pairs. |
|
||||
//+------------------------------------------------------------------+
|
||||
template<typename TKey,typename TValue>
|
||||
interface IMap: public ICollection<CKeyValuePair<TKey,TValue>*>
|
||||
{
|
||||
//--- methods of filling data
|
||||
bool Add(TKey key,TValue value);
|
||||
//--- methods of access to protected data
|
||||
bool Contains(TKey key,TValue value);
|
||||
bool Remove(TKey key);
|
||||
//--- method of access to the data
|
||||
bool TryGetValue(TKey key,TValue &value);
|
||||
bool TrySetValue(TKey key,TValue value);
|
||||
//--- methods of copy data from collection
|
||||
int CopyTo(TKey &dst_keys[],TValue &dst_values[],const int dst_start=0);
|
||||
};
|
||||
//+------------------------------------------------------------------+
|
||||
@@ -0,0 +1,37 @@
|
||||
//+------------------------------------------------------------------+
|
||||
//| ISet.mqh |
|
||||
//| Copyright 2000-2026, MetaQuotes Ltd. |
|
||||
//| www.mql5.com |
|
||||
//+------------------------------------------------------------------+
|
||||
#include "ICollection.mqh"
|
||||
//+------------------------------------------------------------------+
|
||||
//| Interface ISet<T>. |
|
||||
//| Usage: Provides the base interface for the abstraction of sets. |
|
||||
//+------------------------------------------------------------------+
|
||||
template<typename T>
|
||||
interface ISet: public ICollection<T>
|
||||
{
|
||||
//--- methods of changing sets
|
||||
void ExceptWith(ICollection<T>*collection);
|
||||
void ExceptWith(T &array[]);
|
||||
void IntersectWith(ICollection<T>*collection);
|
||||
void IntersectWith(T &array[]);
|
||||
void SymmetricExceptWith(ICollection<T>*collection);
|
||||
void SymmetricExceptWith(T &array[]);
|
||||
void UnionWith(ICollection<T>*collection);
|
||||
void UnionWith(T &array[]);
|
||||
//--- methods for determining the relationship between sets
|
||||
bool IsProperSubsetOf(ICollection<T>*collection);
|
||||
bool IsProperSubsetOf(T &array[]);
|
||||
bool IsProperSupersetOf(ICollection<T>*collection);
|
||||
bool IsProperSupersetOf(T &array[]);
|
||||
bool IsSubsetOf(ICollection<T>*collection);
|
||||
bool IsSubsetOf(T &array[]);
|
||||
bool IsSupersetOf(ICollection<T>*collection);
|
||||
bool IsSupersetOf(T &array[]);
|
||||
bool Overlaps(ICollection<T>*collection);
|
||||
bool Overlaps(T &array[]);
|
||||
bool SetEquals(ICollection<T>*collection);
|
||||
bool SetEquals(T &array[]);
|
||||
};
|
||||
//+------------------------------------------------------------------+
|
||||
Reference in New Issue
Block a user