Chapter 16. More Design Patterns

In this chapter, we present design patterns from each of the three categories: creational, structural, and behavioral.

16.1

Creational Patterns

360

16.2

Serializer Pattern Revisited

373

16.3

The Façade Pattern

381

Creational Patterns

By using creational patterns to manage object creation, we gain flexibility that makes it possible to choose or change the kinds of objects created or used at runtime, and also to manage object deletion automatically. Especially in large software systems, managing the creation of objects is important for flexibility in program design, maintaining a separation between layers of code and ensuring that objects are properly deleted when they are no longer needed.

In C++, a factory is a program component, ...

Get An Introduction to Design Patterns in C++ with Qt 4 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.