2013-06-02 14:32:43 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* Int32.h *
|
|
|
|
* *
|
2013-07-12 21:30:13 +02:00
|
|
|
* XFX System::Int32 structure definition file *
|
2013-06-02 14:32:43 +02:00
|
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
|
|
*****************************************************************************/
|
2013-05-05 18:18:41 +02:00
|
|
|
#ifndef _SYSTEM_INT32_
|
|
|
|
#define _SYSTEM_INT32_
|
|
|
|
|
|
|
|
#include "Interfaces.h"
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
class String;
|
|
|
|
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Represents a signed, 32-bit integer.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
struct Int32 : IComparable<Int32>, IEquatable<Int32>, Object
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
int value;
|
|
|
|
|
|
|
|
public:
|
|
|
|
static const int MaxValue;
|
|
|
|
static const int MinValue;
|
|
|
|
|
|
|
|
Int32();
|
|
|
|
Int32(const Int32 &obj);
|
|
|
|
Int32(const int &obj);
|
|
|
|
|
|
|
|
int CompareTo(const Int32 other) const;
|
|
|
|
bool Equals(Object const * const obj) const;
|
|
|
|
bool Equals(const Int32 other) const;
|
|
|
|
int GetHashCode() const;
|
2013-07-12 21:30:13 +02:00
|
|
|
static const Type& GetType();
|
2013-07-11 20:00:07 +02:00
|
|
|
const String ToString() const;
|
|
|
|
static const String ToString(const int value);
|
2013-05-05 18:18:41 +02:00
|
|
|
static bool TryParse(const String& str, out int* result);
|
|
|
|
|
|
|
|
operator int() const;
|
|
|
|
bool operator !=(const Int32& right) const;
|
|
|
|
bool operator ==(const Int32& right) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_SYSTEM_INT32_
|