In this chapter we discuss the essentials of function declarations, prototypes, and signatures; overloading functions; function call resolution; default/optional arguments; temporary variables and when they're created; reference parameters and return values; and inline functions.
5.1 |
Function Declarations |
106 |
5.2 |
Overloading Functions |
107 |
5.3 |
Optional Arguments |
109 |
5.4 |
Operator Overloading |
111 |
5.5 |
Parameter Passing by Value |
116 |
5.6 |
Parameter Passing by Reference |
118 |
5.7 |
References to const |
121 |
5.8 |
Function Return Values |
122 |
5.9 |
Returning References from Functions |
122 |
5.10 |
Overloading on const-ness |
124 |
5.11 |
Inline Functions |
126 |
5.12 |
Inlining versus Macro Expansion |
127 |
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