Modern C++ design applied generic programming and design patterns

  • Nombre de pages : 322 pages   drapeau anglais
  • Date de parution : 01/04/2001

Résumé

Modern C++ Design is on important book. Fundamentally, it demonstrates generic patterns'or 'pattern templates a powerful new way of creating extensible designs in C++-a new way to combine templates and patterns that you may never have dreamt was possible, but is. Lf your work involves C++ design and coding, you should read this book. Highly recommended... -Herb Sutter

What's left to say about C++ that hasn't already been said? Plenty, it turns out. -From the Foreword by John Vlissides

in Modern C++ Design, Andrei Alexandrescu opens new vistas for C++ programmers. Displaying extraordinary creativity and programming virtuosity, Alexandrescu offers a cutting-edge approach to design that unites design patterns, generic programming, and C++, enabling programmers to achieve expressive, flexible, and highly reusable code.

This book introduces the concept of generic components-reusable design templates that produce boilerplate code for compiler consumption-all within C++. Generic components enable an easier and more seamless transition from design to application code, generate code that better expresses the original design intention, and support the reuse of design structures with minimal recoding.

The author describes the specific C++ techniques and features that are used in building generic components and goes on to implement industrial strength generic components for real-world applications. Recurring issues that C++ developers face in their day-to-day activity are discussed in depth and implemented in a generic way. These include:

Policy-based design for flexibility

Partial template specialization

Typelists-powerful type manipulation structures

Patterns such as Visitor, Singleton, Command, and Factories

Multi-method engines

For each generic component, the book presents the fundamental problems and design options, and finally implements a generic solution.

Contents

  • Forword by Scott Meyers
  • Foreword by John Vlissides
  • Preface
  • Acknowledgments
  • Part I Techniques
  • Chapter 1 Policy-Based Class Design
  • Chapter 2 Techniques
  • Chapter 3 Typelists
  • Chapter 4 Small-Object Allocation
  • Part II Components
  • Chapter 5 Generalized Functors
  • Chapter 6 Implementing Singletons
  • Chapter 7 Smart Pointers
  • Chapter 8 Object Factories
  • Chapter 9 Abstract Factory
  • Chapter 10 Visitor
  • Chapter 11 Multimethods
  • Appendix
  • Bibliography
  • Index

Caractéristiques

  • Parution : 01/04/2001
  • Edition : 1ère édition
  •  
  • Nb de pages : 322 pages
  • Format : 18,6 x 23,4
  • Couverture : Broché
  • Poids : 528 g
  • Intérieur : Noir et Blanc
  •  

mentions légales | conditions générales de vente | copyright © 2012
(1) livraison gratuite à partir de 49 € en France métropolitaine