g_memblock.h
来自「c语言是面向过程的程序语言」· C头文件 代码 · 共 56 行
H
56 行
#if defined(GENERIC) || !defined(G_MEMBLOCK_H)#define G_MEMBLOCK_H/* ****************************** * Object Oriented Programming in C * * Author: Laurent Deniau, Laurent.Deniau@cern.ch * * For more information, please see the paper: * http://home.cern.ch/ldeniau/html/oopc/oopc.html * ****************************** */#include <ooc.h>/*--------------------------------*//* Generic memBlock interface *//* [abstract class] *//*--------------------------------*/#undef OBJECT#define OBJECT GENERIC(memBlock)/* Object interface */BASEOBJECT_INTERFACE void *private(owner); gType1 *private(base);BASEOBJECT_METHODS void method_(set) size_t n, gType1 x __; void method_(copy) size_t n, gType1 const* t __; void method_(resize) size_t n __;ENDOF_INTERFACE/* Abstract Class interface */ABSTRACTCLASS_INTERFACE int private(total); int classMethod (numBlock); void method_(init) size_t n __; void method_(initRef) gType1 *const t __; gType1 const* constMethod(const_base); gType1 * method(base);ENDOF_INTERFACE#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?