Generics and Containers

Table of contents:

This chapter covers more deeply the subject of generics. Generics are classes and functions that can operate just as easily on objects as primitive types. Qt container classes are generic, template-based classes, and we will see examples using lists, sets, and maps. Operators, managed containers, and resource sharing are also discussed.

10.1

Generics and Templates

214

10.2

Containers

219

10.3

Managed Containers, Composites, and Aggregates

221

10.4

Implicitly Shared Classes

224

10.5

Generics, Algorithms, and Operators

225

10.6

Serializer Pattern

227

10.7

Sorted Map Example

229



Generics and Templates

Part I: Introduction to C++ and Qt 4

C++ Introduction

Classes

Introduction to Qt

Lists

Functions

Inheritance and Polymorphism

Part II: Higher-Level Programming

Libraries

Introduction to Design Patterns

QObject

Generics and Containers

Qt GUI Widgets

Concurrency

Validation and Regular Expressions

Parsing XML

Meta Objects, Properties, and Reflective Programming

More Design Patterns

Models and Views

Qt SQL Classes

Part III: C++ Language Reference

Types and Expressions

Scope and Storage Class

Statements and Control Structures

Memory Access

Chapter Summary

Inheritance in Detail

Miscellaneous Topics

Part IV: Programming Assignments

MP3 Jukebox Assignments

Part V: Appendices

MP3 Jukebox Assignments

Bibliography

MP3 Jukebox Assignments



An Introduction to Design Patterns in C++ with Qt 4
An Introduction to Design Patterns in C++ with Qt 4
ISBN: 0131879057
EAN: 2147483647
Year: 2004
Pages: 268

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net