2013-06-02 14:32:43 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* UInt64.h *
|
|
|
|
* *
|
|
|
|
* XFX System::UInt64 definition file *
|
|
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
|
|
*****************************************************************************/
|
2013-05-05 18:18:41 +02:00
|
|
|
#ifndef _SYSTEM_UINT64_
|
|
|
|
#define _SYSTEM_UINT64_
|
|
|
|
|
|
|
|
#include <System/Interfaces.h>
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
class String;
|
|
|
|
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Represents an unsigned, 64-bit integer.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
struct UInt64 : IComparable<UInt64>, IEquatable<UInt64>, Object
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
ulong value;
|
|
|
|
|
|
|
|
public:
|
|
|
|
static const ulong MaxValue;
|
|
|
|
static const ulong MinValue;
|
|
|
|
|
|
|
|
UInt64(const UInt64 &obj);
|
|
|
|
UInt64(const ulong &obj);
|
|
|
|
|
|
|
|
int CompareTo(const UInt64 other) const;
|
|
|
|
bool Equals(Object const * const obj) const;
|
|
|
|
bool Equals(const UInt64 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 ulong value);
|
2013-05-05 18:18:41 +02:00
|
|
|
static bool TryParse(const String& str, out ulong* value);
|
|
|
|
|
|
|
|
operator ulong() const;
|
|
|
|
bool operator==(const UInt64& right) const;
|
|
|
|
bool operator!=(const UInt64& right) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_SYSTEM_UINT64_
|