Applied C++: Techniques for Building Better Software (Paperback)

Philip Romanik, Amy Muntz

  • 出版商: Addison-Wesley Professional
  • 出版日期: 2003-05-01
  • 售價: $1,575
  • 貴賓價: 9.5$1,496
  • 語言: 英文
  • 頁數: 352
  • 裝訂: Paperback
  • ISBN: 0321108949
  • ISBN-13: 9780321108944
  • 相關分類: C++ 程式語言

立即出貨 (庫存 < 4)

買這商品的人也買了...

商品描述

Table of Contents

Preface.
1. Introduction.

Imaging Basics.
RGB Images.
HSI Images.

Summary.


2. A Test Application.

Image Class Design.
Thumbnail Class.
Thumbnail Algorithm.

Implementation.
Image Class.
Thumbnail Class.

Summary.


3. Design Techniques.

Memory Allocation.
Why a Memory Allocation Object Is Needed.
Memory Allocation Object Requirements.
A Primer on Templates.
Notations Used in Class Diagrams.
Memory Allocator Object?s Class Hierarchy.

Prototyping.
Why Prototyping Works.
Common Fears.
Our Image Framework Prototyping Strategy.
Prototype 1: Simple Image Objects.
Prototype 2: Templated Image Objects.
Prototype 3: Separating Storage from Image Objects.

Summary.


4. Design Considerations.

Coding Guidelines.
Changes to Existing Software.
Naming Conventions.
Indentation.
Comments.
Header File Issues.
Restrictions.

Reusable Code.
The Economics of Reusability.

Designing in Debugging Support.
Creating a Generalized Debugging Stream.
Creating Sinks.
Connecting a Sink to a Stream.
Controlling Debugging Output.
Accessing Objects Indirectly Through an Object Registry.

Summary.


5. System Considerations.

Multithreaded and Multiprocess Designs.
Threads.
Thread Synchronization.
Processes.

Exception Handling.
Designing Your Own Exception Framework.
Avoiding Exception Abuse.
Using Assertions.

Compile-Time Versus Run-Time Issues.
Compiler Issues.
Run-Time Issues.
Template Specialization.

Coding for Internationalization.
Unicode.
A Simple Resource Manager for Strings.
Saving and Restoring Strings from Files.
An Alternate Approach to Handling Strings.
Locales.

Summary.


6. Implementation Considerations.

Finalizing the Image Components.
Image Coordinates.
Image Storage.
Pixel Types.

Finalizing the Image Class.
Image Object.

Adding Global Image Functions.
Copying an Image.
Processing Single Source Images.
Processing Two Source Images.
Processing Images with Neighborhood Operators.
Generating Thumbnails.

Finalizing Interfaces to Third-Party Software.
File Delegates.
Image Delegates.

Summary.


7. Testing and Performance.

Unit Tests.
Using the Unit Test Framework.
Design of the Unit Test Framework.
Extending the Unit Test Framework.

Performance Tuning.
General Guidelines.
Thirteen Ways to Improve Performance.
Image-Specific Improvements.
A Note About Timing Your Code.

Summary.


8. Advanced Topics.

Memory Issues.
Copy on Write.
Caching Issues.

Language Construct Issues.
Explicit Keyword Usage.
Const Usage.
Pass by Reference Usage.

Extending the Framework.
Adding Image Processing Functions.
Enhancing Digital Photographs.

Summary.


A. Useful Online Resources.

Software.
Standards.


B. CD-ROM Information.

Contents.
Framework.
Prototypes.
Utilities.
DebugView Utility.
Intel C++ Compiler.

Delegates.
Intel Integrated Performance Primitives (IPP).
JPEG.
TIFF.