NFD源码阅读——noncopyable函数
来源:互联网 发布:office使用技巧软件 编辑:程序博客网 时间:2024/05/19 14:54
在NFD家目录(http://named-data.net/doc/NFD/current/)中点击API Documentation (doxygen)。即可看到NFD的源码目录(NFD http://named-data.net/doc/NFD/current/doxygen/inherits.html)。在首页中第一栏目录中选择Classes,第二栏目录中选择Class Hierarchy就可以看到类之间的继承关系。
当想要查阅其中的一个类的时候,点击那个类。页面中就会出现这个类的继承关系,友元类。声明和定义的位置。
NFD中用的是boost库中的noncopyable类。noncopyable类的构造函数和析构函数都是protected的,可以看出它只能作为一个基类。
Dave Abrahams notes concern about the effect on compiler optimization of adding (even trivial inline) destructor declarations. He says:“Probably this concern is misplaced, because noncopyable
will be used mostly for classes which own resources and thus have non-trivial destruction semantics.”
With C++2011, using an optimized and trivial constructor and similar destructor can be enforced by declaring both and marking them default
. This is done in the current implementation.
- NFD源码阅读——noncopyable函数
- noncopyable
- noncopyable
- SLF4j——源码阅读
- 源码阅读—String equals()
- 源码阅读之函数指针
- lua源码阅读(6)-函数
- Tokyo Cabinet TCHDB源码阅读——tchdbnew、tchdbopen及相关函数代码
- Tokyo Cabinet TCHDB源码阅读——tchdbput及相关函数代码注释
- Tokyo Cabinet TCHDB源码阅读——delayed record pool和tchdbputasyncimpl相关函数代码注释
- Tokyo Cabinet TCHDB源码阅读——tchdbnew、tchdbopen及相关函数代码
- Flask源码阅读(一)——路由和视图函数
- spring源码阅读1——环境搭建&阅读方法
- zabbix源码阅读——zabbix_server
- hadoop源码阅读——Mapper.class
- Spring源码阅读——获得bean
- Spring源码阅读——获得bean
- Spring源码阅读——BeanFactory体系结构
- Target runtime com.genuitec.runtime.generic.jee60 is not defined.
- 经典Spring mvc 文章
- Sencha Touch 组件选择器
- Wireshark过滤规则
- Ugly Numbers
- NFD源码阅读——noncopyable函数
- javascript解三阶幻方谜题
- JavaWeb——文件上传和下载
- java面向对象的三大特征
- javascript 模块化
- JQuery DOM 常用操作汇总
- 如何在11.2集群中添加/删除资源?
- jQuery源码解读:部份jQuery工具方法实现
- ssh免密码登陆服务器