mFrame
載入中...
搜尋中...
無符合項目
Allocator.h
1
8#ifndef MFRAME_A640D444_DED9_463A_8F4A_E407A682DBAC
9#define MFRAME_A640D444_DED9_463A_8F4A_E407A682DBAC
10
11/* ***************************************************************************************
12 * Include
13 */
14
15//----------------------------------------------------------------------------------------
16
17//----------------------------------------------------------------------------------------
18#include "./../lang/Interface.h"
19
20/* ***************************************************************************************
21 * Namespace
22 */
23namespace mframe::sys {
24 struct Allocator;
25} // namespace mframe::sys
26
27/* ***************************************************************************************
28 * Class/Interface/Struct
29 */
31 /* *************************************************************************************
32 * Method
33 */
34
40 virtual void* alloc(int size) abstract;
41
50 virtual bool free(void* ptr, int size = 0) abstract;
51
57 virtual int getFree(void) abstract;
58};
59
60/* ***************************************************************************************
61 * End of file
62 */
63
64#endif /* MFRAME_A640D444_DED9_463A_8F4A_E407A682DBAC */
Definition Object.h:27
Definition Interface.h:134
Definition Allocator.h:30
virtual bool free(void *ptr, int size=0) override
virtual void * alloc(int size) override
virtual int getFree(void) override
Get the Free object.