initial commit
This commit is contained in:
commit
4b60ece582
327 changed files with 28286 additions and 0 deletions
49
lib/wType/uint64.h
Normal file
49
lib/wType/uint64.h
Normal file
|
@ -0,0 +1,49 @@
|
|||
#ifndef UINT64_H
|
||||
#define UINT64_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "object.h"
|
||||
|
||||
namespace W
|
||||
{
|
||||
class Uint64:
|
||||
public Object
|
||||
{
|
||||
public:
|
||||
Uint64();
|
||||
explicit Uint64(const uint64_t& original);
|
||||
Uint64(const Uint64& original);
|
||||
~Uint64();
|
||||
|
||||
Uint64& operator=(const Uint64& original);
|
||||
|
||||
StdStr toString() const override;
|
||||
Object* copy() const override;
|
||||
size_type length() const override;
|
||||
size_type size() const override;
|
||||
objectType getType() const override;
|
||||
|
||||
bool operator==(const W::Object & other) const override;
|
||||
|
||||
bool operator<(const Uint64& other) const;
|
||||
bool operator>(const Uint64& other) const;
|
||||
bool operator<=(const Uint64& other) const;
|
||||
bool operator>=(const Uint64& other) const;
|
||||
bool operator==(const Uint64& other) const;
|
||||
bool operator!=(const Uint64& other) const;
|
||||
|
||||
static const objectType type = uint64;
|
||||
|
||||
void serialize(ByteArray& out) const override;
|
||||
void deserialize(ByteArray& in) override;
|
||||
|
||||
operator uint64_t() const;
|
||||
|
||||
private:
|
||||
uint64_t data;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
#endif // UINT64_H
|
Loading…
Add table
Add a link
Reference in a new issue