Page buffers revisited

2/26/98


Click here to start


Table of Contents

Page buffers revisited

The object of the game

Allowing multiple buffers

Allowing multiple files

Memory management

Using a one-dimensional array

Indices

Interface definition

How will we implement it?

Expanded class definition

How might we use it?

Important observation

The Buffer constructor

Allocating memory with new

Other properties of new

``Printing'' a number

Flushing the buffer

Revising the class definition

Flushing the buffer

Printing a row

The destructor

What have we gained?

Not quite the whole truth...

References

Reference examples

Why bother with references?

A function that modifies its argument

Passing uncopyable arguments

Reference to const

Examples of references to const

Copy constructors

Additional pieces

The next four weeks

What is in a proposal

Presentations

Author: Andrew Koenig

Email: ark@research.att.com

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