O'Reilly logo

Applied C++: Practical Techniques for Building Better Software by Amy Muntz, Philip Romanik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Design Techniques

IN THIS CHAPTER

  • C++ Concepts

  • Memory Allocation Object

  • Singleton Object

  • Reference Counting

  • Template Primer

  • Handles and Rep objects

  • Prototyping Strategy

  • Image Framework Concepts

  • Image Object (Prototype 1)

  • Templated Image Object (Prototype 2)

  • Image Storage (Prototype 3)

In this chapter, we lay the groundwork for extending our digital imaging framework. We begin by designing a memory allocation object, and then continue with a templates primer that provides a road map to subtleties of templates and their use. Finally, we apply C++ constructs to specific aspects of the design by creating detailed prototypes, and discussing the advantages and disadvantages of each technique.

Memory Allocation

In our test application’s image class described ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required