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