8#ifndef MFRAME_C6CF2DB4_1F61_4562_8698_C0C22D0C69FA
9#define MFRAME_C6CF2DB4_1F61_4562_8698_C0C22D0C69FA
18#include "./../lang/Object.h"
98 inline operator bool&(void) {
99 return this->vValue.
b;
107 inline operator const bool&(void)
const {
108 return this->vValue.
b;
116 inline operator int&(void) {
117 return this->vValue.
s32[0];
125 inline operator const int&(void)
const {
126 return this->vValue.
s32[0];
134 inline operator uint32&(void) {
136 return *
reinterpret_cast<uint32*
>(&this->
vValue);
138 return this->vValue.
u32[0];
147 inline operator const uint32&(void)
const {
149 return *
reinterpret_cast<uint32 const*
>(&this->
vValue);
151 return this->vValue.
u32[0];
160 inline operator float&(void) {
161 return this->vValue.
f32[0];
169 inline operator const float&(void)
const {
170 return this->vValue.
f32[0];
178 inline operator double&(void) {
179 return this->vValue.
d64;
187 inline operator const double&(void)
const {
188 return this->vValue.
d64;
物件基底類別
Definition Object.h:63
[Interface] 數值基礎抽象類
Definition Number.h:44
virtual int hashcode(void) const override
返回對象的哈希碼值
bool operator==(Number &v)
比較兩個 Number 物件是否相等
Definition Number.h:198
Value vValue
數值儲存體
Definition Number.h:72
數值聯合體
Definition Number.h:54
char s8[4]
有符號8位元陣列
Definition Number.h:57
float f32[2]
32位元浮點數陣列
Definition Number.h:62
uint8 u8[4]
無符號8位元陣列
Definition Number.h:56
uint32 u32[2]
無符號32位元陣列
Definition Number.h:60
bool b
布林值
Definition Number.h:55
short s16[2]
有符號16位元陣列
Definition Number.h:59
uint64_t u64
無符號64位元整數
Definition Number.h:63
int s32[2]
有符號32位元陣列
Definition Number.h:61
uint16 u16[2]
無符號16位元陣列
Definition Number.h:58
double d64
64位元浮點數
Definition Number.h:65
int64_t s64
有符號64位元整數
Definition Number.h:64