Inside the C++ Object Model, 1st edition

  • Stanley B. Lippman

Unfortunately, this item is not available in your country.


Inside the C++ Object Model focuses on the underlying mechanisms that support object-oriented programming within C++: constructor semantics, temporary generation, support for encapsulation, inheritance, and "the virtuals"--virtual functions and virtual inheritance. This book shows how your understanding the underlying implementation models can help you code more efficiently and with greater confidence. Lippman dispells the misinformation and myths about the overhead and complexity associated with C++, while pointing out areas in which costs and trade offs, sometimes hidden, do exist. He then explains how the various implementation models arose, points out areas in which they are likely to evolve, and why they are what they are. He covers the semantic implications of the C++ object model and how that model affects your programs.

  • Explores the program behavior implicit in the C++ Object Model's support of object-oriented programming.
  • Explains the basic implementation of the object-oriented features and the trade offs implicit in those features.
  • Examines the impact on performance in terms of program transformation.
  • Provides abundant program examples, diagrams, and performance measurements to relate object-oriented concepts to the underlying object model.

If you are a C++ programmer who desires a fuller understanding of what is going on "under the hood," then Inside the C++ Object Model is for you!

Get a value-added service! Try out all the examples from this book at CodeSaw is a free online learning tool that allows you to experiment with live code from your book right in your browser.


Table of contents

Object Lessons.

Layout Costs for Adding Encapsulation.

The C++ Object Model.

A Keyword Distinction.

An Object Distinction.

The Semantics of Constructors.

Default Constructor Construction.

Copy Constructor Construction.

Program Transformation Semantics.

Member Initialization List.

The Semantics of Data.

The Binding of a Data Member.

Data Member Layout.

Access of a Data Member.

Inheritance and the Data Member.

Object Member Efficiency.

Pointer to Data Members.

The Semantics of Function.

Varieties of Member Invocation.

Virtual Member Functions.

Function Efficiency.

Pointer-to-Member Functions.

Inline Functions.

Semantics of Construction, Destruction, and Copy.

Object Construction without Inheritance.

Object Construction under Inheritance.

Object Copy Semantics.

Object Efficiency.

Semantics of Destruction.

Runtime Semantics.

Object Construction and Destruction.

Operators new and delete.

Temporary Objects.

On the Cusp of the Object Model.


Exception Handling.

Runtime Type Identification.

Efficient, but Inflexible.

Index. 0201834545T04062001

Published by Addison-Wesley Professional (May 3rd 1996) - Copyright © 1996