图书介绍

深度探索 C++ 对象模型2025|PDF|Epub|mobi|kindle电子书版本百度云盘下载

深度探索 C++ 对象模型
  • (美)李普曼著 著
  • 出版社: 北京:中国电力出版社
  • ISBN:7508314050
  • 出版时间:2003
  • 标注页数:280页
  • 文件大小:9MB
  • 文件页数:300页
  • 主题词:C语言-程序设计-英文

PDF下载


点此进入-本书在线PDF格式电子书下载【推荐-云解压-方便快捷】直接下载PDF格式图书。移动端-PC端通用
种子下载[BT下载速度快]温馨提示:(请使用BT下载软件FDM进行下载)软件下载地址页直链下载[便捷但速度慢]  [在线试读本书]   [在线获取解压码]

下载说明

深度探索 C++ 对象模型PDF格式电子书版下载

下载的文件为RAR压缩包。需要使用解压软件进行解压得到PDF格式图书。

建议使用BT下载工具Free Download Manager进行下载,简称FDM(免费,没有广告,支持多平台)。本站资源全部打包为BT种子。所以需要使用专业的BT下载软件进行下载。如BitComet qBittorrent uTorrent等BT下载工具。迅雷目前由于本站不是热门资源。不推荐使用!后期资源热门了。安装了迅雷也可以迅雷进行下载!

(文件页数 要大于 标注页数,上中下等多册电子书除外)

注意:本站所有压缩包均有解压码: 点击下载压缩包解压工具

图书目录

1 Object Lessons1

Layout Costs for Adding Encapsulation5

1.1 The C++Object Model6

A simple object model6

A table-driven object model7

1.2 A Keyword Distinction12

Keywords schmeewords13

The politically correct struct16

1.3 An Object Distinction18

The type of a pointer24

Adding polymorphism25

2 The Semantics of Constructors31

2.1 Default Constructor Construction32

Member class object with default constructor34

Base class with default constructor37

Class with a virtual function37

Class with a virtual base class38

Summary39

2.2 Copy Constructor Construction40

Default memberwise initialization41

Bitwise copy semantics43

Bitwise copy semantics-Not!45

Resetting the Virtual Table Pointer45

Handling the Virtual Base Class Subobject47

Explicit initialization50

2.3 Program Transformation Semantics50

Argument initialization51

Return value initialization53

Optimization at the user level54

Optimization at the compiler level55

The copy constructor:to have or to have not?59

Summary61

2.4 Member Initialization List62

3 The Semantics of Data69

3.1 The Binding of a Data Member72

3.3 Access of a Data Member72

3.2 Data Member Layout75

Static data members78

Nonstatic data members80

3.4 Inheritance and the Data Member82

Inheritance without polymorphism83

Adding polymorphism87

Multiple inheritance91

Virtual inheritance95

3.5 Object Member Efficiency101

3.6 Pointer to Data Members106

Efficiency of pointers to members109

4 The Semantics of Function113

4.1 Varieties of Member Invocation114

Nonstatic member functions114

Virtual member functions120

Static member functions121

4.2 Virtual Member Functions124

Virtual functions under MI131

Virtual functions under virtual inheritance138

4.3 Function Efficiency139

4.4 Pointer-to-Member Functions144

Supporting pointer-to-virtual member functions145

Pointer-to-member functions under M1147

Pointer-to-member efficiency149

4.5 Inline Functions151

Formal arguments154

Local variables155

5 Semantics of Construction,Destruction,and Copy159

Presence of pure virtual destructor160

Presence of a virtual specification161

Presence of const within a virtual specification162

A reconsidered class declaration162

5.1 Object Construction without Inheritance163

Abstract data type165

Concrete base class168

5.2 Object Construction under Inheritance172

Virtual inheritance176

The semantics of the vptr initialization179

5.3 Object Copy Semantics184

5.4 Object Efficiency190

5.5 Semantics of Destruction196

6 Runtime Semantics201

6.1 Object Construction and Destruction203

Global objects205

Local static objects209

Arrays of objects211

Default constructors and arrays214

6.2 Operators new and delete215

The semantics of new arrays218

6.3 Temporary Objects227

A temporary myth235

7 On the Cusp of the Object Model239

7.1 Templates239

Template instantiation241

Error reporting within a template244

Member function instantiation250

7.2 Exception Handling254

A quick review of exception handling256

Exception handling support260

7.3 Runtime Type Identification264

Introducing a type safe downcast266

A type safe dynamic cast267

References are not pointers269

Typeid Operator270

7.4 Efficient,but Inflexible272

Dynamic Shared Libraries272

Shared Memory272

Index275

热门推荐