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 ...

Get Applied C++: Practical Techniques for Building Better Software now with O’Reilly online learning.

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