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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.