1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Halofreak1990 c4a46bae5d Almost fixed the List template (moved all code into the header as per the template implementation requirements)
Added Exceptions to the System.Xml library
Added missing DisplayModeCollection class
Added Stack class (will be tested soon, and removed again if it doesn't work)

* This revision's libXFX doesn't build. This is due to the List template not handling pointers to abstract classes the way I'd like it to do. Need to look into.
2011-03-07 19:14:57 +00:00

36 lines
1.1 KiB
C++

/********************************************************
* Array.h *
* *
* XFX Array class definition file *
* Contains array helper methods *
* Copyright © XFX Team. All Rights Reserved *
********************************************************/
#ifndef _SYSTEM_ARRAY_
#define _SYSTEM_ARRAY_
#include <System/Collections/Generic/Interfaces.h>
using namespace System::Collections::Generic;
namespace System
{
class Array
{
public:
template <class T>
static int BinarySearch(T array[], int index, int length, T value, IComparer<T>* comparer);
template <class T>
static void Clear(T array[], int index, int length);
template <class T>
static void Copy(T sourceArray[], int sourceIndex, T destinationArray[], int destinationIndex, int length);
template <class T>
static int IndexOf(T array[], T value, int startIndex, int count);
template <class T>
static int Length(T array[]);
template <class T>
static void Reverse(T array[], int index, int length);
};
}
#endif //_SYSTEM_ARRAY_