Handles and use counts
(part 1)

4/19/98


Click here to start


Table of Contents

Handles and use counts
(part 1)

Overview

What is a copy?

Why do we want to copy objects?

Example of necessary copying

C++ implementation

Smalltalk does it differently

Java does it differently, too

The root of the problem

Dealing with objects in C++

Properties of binding objects

Binding objects have many forms and names

A concrete example

How are we going to use it?

Example of usage

Declaration of Expr

Why no virtuals?

The data structure

The auxiliary data structure

General C++ strategy for such structures

Revised data structure

What classes do we need?

These classes know about each other

The class hierarchy

Private data in Expr

Declaration of ExprBase

We can start to define Expr

What about the constructors?

The ExprBase constructor

Author: Andrew Koenig

Email: ark@research.att.com

Home Page: http://www.research.att.com/info/ark