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

41 lines
830 B
C++

#ifndef _SYSTEM_COLLECTIONS_STACK_
#define _SYSTEM_COLLECTIONS_STACK_
#include <System/Object.h>
#include <System/Collections/Interfaces.h>
namespace System
{
namespace Collections
{
class Stack : public ICollection, virtual Object
{
private:
Object** _bottom;
Object** _top;
static const int _defaultCapacity;
int _size;
int _version;
public:
int Count();
bool IsSynchronized();
Stack();
Stack(ICollection* col);
Stack(int initialCapacity);
virtual ~Stack();
virtual void Clear();
virtual bool Contains(Object* obj);
virtual void CopyTo(Object* array[], int index);
virtual Object* Peek();
virtual Object* Pop();
virtual void Push(Object* obj);
virtual Object** ToArray();
};
}
}
#endif //_SYSTEM_COLLECTIONS_STACK_