Applied C++: Practical Techniques for Building Better Software [Electronic resources]

Addison Wesley

نسخه متنی -صفحه : 59/ 20
نمايش فراداده

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.