深度探索 C++ 对象模型PDF电子书下载
- 电子书积分:11 积分如何计算积分?
- 作 者:(美)李普曼著
- 出 版 社:北京:中国电力出版社
- 出版年份:2003
- ISBN:7508314050
- 页数:280 页
1 Object Lessons 1
Layout Costs for Adding Encapsulation 5
1.1 The C++Object Model 6
A simple object model 6
A table-driven object model 7
1.2 A Keyword Distinction 12
Keywords schmeewords 13
The politically correct struct 16
1.3 An Object Distinction 18
The type of a pointer 24
Adding polymorphism 25
2 The Semantics of Constructors 31
2.1 Default Constructor Construction 32
Member class object with default constructor 34
Base class with default constructor 37
Class with a virtual function 37
Class with a virtual base class 38
Summary 39
2.2 Copy Constructor Construction 40
Default memberwise initialization 41
Bitwise copy semantics 43
Bitwise copy semantics-Not! 45
Resetting the Virtual Table Pointer 45
Handling the Virtual Base Class Subobject 47
Explicit initialization 50
2.3 Program Transformation Semantics 50
Argument initialization 51
Return value initialization 53
Optimization at the user level 54
Optimization at the compiler level 55
The copy constructor:to have or to have not? 59
Summary 61
2.4 Member Initialization List 62
3 The Semantics of Data 69
3.1 The Binding of a Data Member 72
3.3 Access of a Data Member 72
3.2 Data Member Layout 75
Static data members 78
Nonstatic data members 80
3.4 Inheritance and the Data Member 82
Inheritance without polymorphism 83
Adding polymorphism 87
Multiple inheritance 91
Virtual inheritance 95
3.5 Object Member Efficiency 101
3.6 Pointer to Data Members 106
Efficiency of pointers to members 109
4 The Semantics of Function 113
4.1 Varieties of Member Invocation 114
Nonstatic member functions 114
Virtual member functions 120
Static member functions 121
4.2 Virtual Member Functions 124
Virtual functions under MI 131
Virtual functions under virtual inheritance 138
4.3 Function Efficiency 139
4.4 Pointer-to-Member Functions 144
Supporting pointer-to-virtual member functions 145
Pointer-to-member functions under M1 147
Pointer-to-member efficiency 149
4.5 Inline Functions 151
Formal arguments 154
Local variables 155
5 Semantics of Construction,Destruction,and Copy 159
Presence of pure virtual destructor 160
Presence of a virtual specification 161
Presence of const within a virtual specification 162
A reconsidered class declaration 162
5.1 Object Construction without Inheritance 163
Abstract data type 165
Concrete base class 168
5.2 Object Construction under Inheritance 172
Virtual inheritance 176
The semantics of the vptr initialization 179
5.3 Object Copy Semantics 184
5.4 Object Efficiency 190
5.5 Semantics of Destruction 196
6 Runtime Semantics 201
6.1 Object Construction and Destruction 203
Global objects 205
Local static objects 209
Arrays of objects 211
Default constructors and arrays 214
6.2 Operators new and delete 215
The semantics of new arrays 218
6.3 Temporary Objects 227
A temporary myth 235
7 On the Cusp of the Object Model 239
7.1 Templates 239
Template instantiation 241
Error reporting within a template 244
Member function instantiation 250
7.2 Exception Handling 254
A quick review of exception handling 256
Exception handling support 260
7.3 Runtime Type Identification 264
Introducing a type safe downcast 266
A type safe dynamic cast 267
References are not pointers 269
Typeid Operator 270
7.4 Efficient,but Inflexible 272
Dynamic Shared Libraries 272
Shared Memory 272
Index 275
- 《语文教育教学实践探索》陈德收 2018
- 《学校特色教育探索与实践》管升起著 2019
- 《深度学习与飞桨PaddlePaddle Fluid实战》于祥 2019
- 《深度说服》(英国)尼克·鲍多克 2019
- 《深度拆解20个经典品牌民宿》严风林著 2019
- 《模型与认知》(美)乔纳森·A.瓦斯肯著,魏刘伟译 2019
- 《中国二氧化碳减排和环境协同效益评价模型的构建与研究》杨曦,滕飞著 2019
- 《“知识新探索”百科丛书 经济学的世界 全彩版》(英)泰吉万·帕丁格 2019
- 《高中压配电网规划 实用模型、方法、软件和应用 上》王主丁著 2020
- 《基于多维视角的英语语言学理论探索与应用》刘曦著 2019
- 《中国当代乡土小说文库 本乡本土》(中国)刘玉堂 2019
- 《异质性条件下技术创新最优市场结构研究 以中国高技术产业为例》千慧雄 2019
- 《中国铁路人 第三届现实主义网络文学征文大赛一等奖》恒传录著 2019
- 《莼江曲谱 2 中国昆曲博物馆藏稀见昆剧手抄曲谱汇编之一》郭腊梅主编;孙伊婷副主编;孙文明,孙伊婷编委;中国昆曲博物馆编 2018
- 《中国制造业绿色供应链发展研究报告》中国电子信息产业发展研究院 2019
- 《中国陈设艺术史》赵囡囡著 2019
- 《指向核心素养 北京十一学校名师教学设计 英语 七年级 上 配人教版》周志英总主编 2019
- 《《走近科学》精选丛书 中国UFO悬案调查》郭之文 2019
- 《清至民国中国西北戏剧经典唱段汇辑 第8卷》孔令纪 2018
- 《北京生态环境保护》《北京环境保护丛书》编委会编著 2018