摘要: 一、函数定义 ros::Subscriber subscribe(const std::string& topic, uint32_t queue_size, , const ros::TransportHints& transport_hints = ros::TransportHints()); 主要讨论queue_size的影响。 This is the incoming messag... 阅读全文
posted @ 2016-05-16 11:29 Frankww 阅读(1757) 评论(0) 推荐(0) 编辑
摘要: 陈云霁 http://novel.ict.ac.cn/ychen/ 陈云霁,男,1983年生,江西南昌人,中国科学院计算技术研究所研究员,博士生导师。同时,他担任了中国科学院脑科学卓越中心特聘研究员,以及中国科学院大学岗位教授。目前他带领其实验室,研制寒武纪系列深度学习处理器。在此之前,他从事国产处理器的研发工作十余年,先后负责或参与了多款龙芯处理器的设计。他在包括ISCA、HPCA、MICR... 阅读全文
posted @ 2016-04-26 08:02 Frankww 阅读(1438) 评论(0) 推荐(0) 编辑
摘要: 1. 基本定义2. Fixed Traits2.1 传统方法2.2 使用Traits方法2.3 总结3. Value Traits4. Parameterized TraitsReference 1. 基本定义 Think of a trait as a small object whose main purpose is to carry information used by anoth... 阅读全文
posted @ 2016-04-23 19:42 Frankww 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 1. 传统继承类的设计 static void print_object(const char* name, void* this_, size_t size) { void** ugly = reinterpret_cast(this_); size_t i; printf("created %s at address %p of size %zu\n", nam... 阅读全文
posted @ 2016-04-22 09:13 Frankww 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1. 最常见情况 2. Reference to Const 3. Pointers and Const 4. Const的不同Level 5. const与Class 5.1 const member function - 函数的末尾有const 5.2 返回值使用const Reference https://isocpp.org/wiki/faq/c... 阅读全文
posted @ 2016-04-22 09:12 Frankww 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1. new和delete的基本概念1.1 new所隐含的三步内容1.2 分配空间的位置1.3 delete所隐含的两步内容2. 使用方法2.1 分配单个空间2.2 array和vector的使用2.4 class with array的使用2.3 在Class中构造和析构函数中的使用3. operator new/new[]和operator delete/delete[]的讨论3.1 基本书... 阅读全文
posted @ 2016-04-03 18:36 Frankww 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 0. 总体内容 1. Composition - has a 的关系 以deque和queue的组合为例子 在class queue里面含有class deque的reference,deque可以使用queue的相关函数,使其功能更加强大。 内存相互关系 构造和析构的顺序 2. Delegation - Composition by reference ... 阅读全文
posted @ 2016-03-21 09:45 Frankww 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 0. 主要内容 1. Big Three在String Class的实现 函数声明时的设计思路 1.1 普通构造函数 对字符串的处理 1.2 拷贝构造函数 - Copy Constructor 默认情况(即浅拷贝) 非默认情况(主要针对,类成员有指针的情况) 1.3 拷贝赋值 - Copy Assignment 1.3 ... 阅读全文
posted @ 2016-03-15 09:41 Frankww 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 程序测试 ?123456789101112/ 示例代码 / function echo (){ var a="this is a example"; alert("hello world "+a); } / 示例代码 / 阅读全文
posted @ 2016-03-10 13:08 Frankww 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1. C++面向对象高级开发 1.1 Object Based 基本功 with pointer without pointer 面对的是单一calss设计 1.2 Object Oriented 有关联的calss 多个类的设计 1.3 History C 1972 C++ 1983 new C -> C with Class -> C++ 大部分版本C++ 98 C+... 阅读全文
posted @ 2016-03-07 07:22 Frankww 阅读(3830) 评论(0) 推荐(1) 编辑