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

Philip Romanik, Amy Muntz

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

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

商品描述

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.

商品描述(中文翻譯)

目錄

前言。

1. 簡介。

影像基礎。
RGB 影像。

HSI 影像。



摘要。



2. 測試應用程式。

影像類別設計。

縮圖類別。
縮圖演算法。



實作。
影像類別。

縮圖類別。



摘要。



3. 設計技巧。

記憶體配置。
為何需要記憶體配置物件。

記憶體配置物件需求。

模板基礎知識。

類別圖中使用的符號。

記憶體配置器物件的類別階層。



原型製作。
原型製作的原理。

常見的疑慮。

我們的影像框架原型製作策略。

原型 1: 簡單影像物件。

原型 2: 模板化影像物件。

原型 3: 將儲存與影像物件分離。



摘要。



4. 設計考量。

程式碼撰寫指南。
現有軟體的變更。

命名慣例。

縮排。

註解。

標頭檔案問題。

限制。



可重複使用的程式碼。
可重複使用性的經濟效益。



設計除錯支援。
建立通用的除錯串流。

建立接收器。

連接接收器到串流。

控制除錯輸出。

透過物件註冊表間接存取物件。



摘要。



5. 系統考量。

多執行緒和多處理設計。
執行緒。

執行緒同步。

處理。



例外處理。
設計自己的例外處理架構。

避免濫用例外處理。

使用斷言。



編譯時與執行時問題。
編譯器問題。

執行時問題。

模板特化。



國際化編碼。
Unicode。

簡單的字串資源管理器。

從檔案儲存和還原字串。

處理字串的替代方法。

地區設定。



摘要。



6. 實作考量。

完成影像元件。
影像座標。

影像儲存。

像素類型。



完成影像類別。
影像物件。



新增全域影像函式。
複製影像。

處理單一來源影像。

處理兩個來源影像。

處理具有鄰域運算子的影像。

產生縮圖。



完成與第三方軟體的介面。
檔案委派。

影像委派。



摘要。



7. 測試和效能。

單元測試。
使用單元測試框架。

單元測試框架的設計。

擴展單元測試框架。



效能調校。
一般指南。

提升效能的十三種方法。

針對影像的改進。

關於計時程式碼的注意事項。



摘要。



8. 進階主題```