摘要:
一、宏定义简化类变量的Set,Get函数: #define vtkSetMacro(name,type) \virtual void Set##name (type _arg) \{ \ if (this->name != _arg) \ { \ this->name = _arg; \ } \} 阅读全文
posted @ 2018-05-17 22:52
arunz
阅读(186)
评论(0)
推荐(0)
|
摘要:
一、宏定义简化类变量的Set,Get函数: #define vtkSetMacro(name,type) \virtual void Set##name (type _arg) \{ \ if (this->name != _arg) \ { \ this->name = _arg; \ } \} 阅读全文
posted @ 2018-05-17 22:52
arunz
阅读(186)
评论(0)
推荐(0)
摘要:
单例模式也称为单件模式、单子模式,可能是使用最广泛的设计模式,主要分为饿汉式和懒汉式,网上有许多资料。 blog.jobbole.com/108579 http://blog.csdn.net/woxiaohahaa/article/details/51344409 这里重点提几个需要注意的问题: 阅读全文
posted @ 2017-12-29 11:37
arunz
阅读(222)
评论(0)
推荐(0)
摘要:
从顶层开始入手,从位于FreeNOS\kernel\intel\pc\Main.cpp开始看,kernel_main函数很短,全部贴上来。 extern C int kernel_main(CoreInfo *info) { // Initialize heap at 3MB offset // T 阅读全文
posted @ 2017-11-24 15:52
arunz
阅读(1076)
评论(0)
推荐(0)
摘要:
开始学习FreeNOS开源项目,安装方法是按照官方网站http://www.freenos.org/documentation/freenos-developers-handbook.html提供的方法进行。 从git上下载FreeNOS,地址https://github.com/lordsergi 阅读全文
posted @ 2017-10-31 22:52
arunz
阅读(4118)
评论(0)
推荐(0)
|