liveBook · Manning

Appointments

As explained in Object-Oriented Software Design in C++

A book-specific class that stores appointment dates in a collection and provides operations for accessing and modifying them.

Appointments is a small C++ class that keeps appointment dates in a private STL vector and exposes operations for reading and changing the collection. section 6.2.2

Testing the collection

A test constructs dates for 1969, 2025, and 2027, appends two dates, inserts the 1969 date at index 0, removes the 2025 date, and prints the resulting order. The visible results are correct, but vector growth and value copying create hidden performance costs.

How Object-Oriented Software Design in C++ covers it

How deep it goes
Explains the vector-backed API and traces copying during operations, but omits runtime index validation.
Examples
Uses dated appointments, indexed insertion and removal, printed vector contents, and instrumented copy-constructor output.
What it assumes
Assumes basic C++ classes, Date objects, STL vectors, and indexed collection operations.
What you can do after
Diagnose/debug with it by comparing visible vector results against constructor, copy, assignment, and destruction activity.
How it connects
Connects STL vectors with Date objects, copy constructors, assignment operators, and pointers.

This explainer was generated by Manning's knowledge graph from the text of Object-Oriented Software Design in C++. The section links point to the parts of the book it draws on.