mFrame
載入中...
搜尋中...
無符合項目
Shorts.h
1
7#ifndef MFRAME_6B6AAADD_762E_4D84_956A_0B5030792CA6
8#define MFRAME_6B6AAADD_762E_4D84_956A_0B5030792CA6
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15#include "./../lang/Object.h"
16
17/* ***************************************************************************************
18 * Namespace
19 */
20namespace mframe::numb {
21 class Shorts;
22} // namespace mframe::numb
23
24/* ***************************************************************************************
25 * Class/Interface/Struct/Enum
26 */
28 /* *************************************************************************************
29 * Variable
30 */
31
32 /* *************************************************************************************
33 * Abstract Method
34 */
35
36 /* *************************************************************************************
37 * Construct Method
38 */
39 private:
44 Shorts(void);
45
46 public:
51 virtual ~Shorts(void) override;
52
53 /* *************************************************************************************
54 * Operator Method
55 */
56
57 /* *************************************************************************************
58 * Public Method <Override>
59 */
60
61 /* *************************************************************************************
62 * Public Method
63 */
64
65 /* *************************************************************************************
66 * Protected Method
67 */
68
69 /* *************************************************************************************
70 * Private Method
71 */
72
73 /* *************************************************************************************
74 * Static Variable
75 */
76
77 /* *************************************************************************************
78 * Static Method
79 */
80 public:
87 static inline uint16 castUnsigned(short value) {
88 return static_cast<uint16>(value);
89 }
90
97 static inline short castSigned(uint16 value) {
98 return static_cast<short>(value);
99 }
100
107 static short valueOf(const char* str);
108};
109
110/* ***************************************************************************************
111 * End of file
112 */
113
114#endif /* MFRAME_6B6AAADD_762E_4D84_956A_0B5030792CA6 */
Definition Object.h:34
Definition Shorts.h:27
virtual ~Shorts(void) override
Destroy the Shorts object.
static uint16 castUnsigned(short value)
轉換為無符號
Definition Shorts.h:87
static short valueOf(const char *str)
將字串轉換為數字
static short castSigned(uint16 value)
轉換為有符號
Definition Shorts.h:97
Definition Boolean.h:23