mFrame
載入中...
搜尋中...
無符合項目
DefaultAllocator.h
1
7#ifndef MFRAME_0F21FC8D_526B_44F7_979F_3BE0419947B1
8#define MFRAME_0F21FC8D_526B_44F7_979F_3BE0419947B1
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15
16//----------------------------------------------------------------------------------------
17#include "./../lang/Object.h"
18#include "./../sys/Allocator.h"
19
20/* ***************************************************************************************
21 * Namespace
22 */
23namespace mframe::sys {
24 class DefaultAllocator;
25} // namespace mframe::sys
26
27/* ***************************************************************************************
28 * Class/Interface/Struct/Enum
29 */
32 /* *************************************************************************************
33 * Variable
34 */
35
36 /* *************************************************************************************
37 * Abstract Method
38 */
39
40 /* *************************************************************************************
41 * Construct Method
42 */
43 public:
49
54 virtual ~DefaultAllocator(void) override;
55
56 /* *************************************************************************************
57 * Operator Method
58 */
59
60 /* *************************************************************************************
61 * Public Method <Override> mframe::sys::Allocator
62 */
63 public:
64 virtual void* alloc(int size) override;
65
66 virtual bool free(void* ptr, int size) override;
67
68 virtual int getFree(void) override;
69
70 /* *************************************************************************************
71 * Public Method
72 */
73
74 /* *************************************************************************************
75 * Protected Method
76 */
77
78 /* *************************************************************************************
79 * Private Method
80 */
81
82 /* *************************************************************************************
83 * Static Variable
84 */
85
86 /* *************************************************************************************
87 * Static Method
88 */
89};
90
91/* ***************************************************************************************
92 * End of file
93 */
94
95#endif /* MFRAME_0F21FC8D_526B_44F7_979F_3BE0419947B1 */
Definition Object.h:34
Definition DefaultAllocator.h:31
virtual void * alloc(int size) override
virtual int getFree(void) override
Get the Free object.
DefaultAllocator(void)
Construct a new Default Allocator object.
virtual bool free(void *ptr, int size) override
virtual ~DefaultAllocator(void) override
Destroy the Default Allocator object.
Definition Object.h:27
Definition Allocator.h:30