Advanced C++ Programming Styles and IdiomsAssuming a backgound in C++ basics, this book helps programmers to develop their programming expertise by giving a feel for the styles and idioms of the language. The approach is organized around the abstractions that C++ supports: abstracts data types, combining types in inheritance. The book also explores idioms that thte core of the C++ language does not support directly, such as virtual constructors, prototype objects, and advanced garbage collection techniques. |
Contents
Introduction | 1 |
Figure 21 Analogy Between C structs and C++ classes | 10 |
Figure 23 Declaration of a Stack with Constructors | 16 |
68 other sections not shown
Common terms and phrases
abstract base class algorithm allocated application domain Atom behaviors C++ code C++ programs canonical form chapter class member function class object classes derived CollectionRep compiler Complex const char const String& constructor context Coordinate copy cplusplus create cutover declaration default define delete derived class destructor double EditWindow Employee encapsulation endif envelope class environment example exception handling exemplar object extern Figure filter garbage collection global header file idiom implementation incremental initialization inline instance instantiated int main invoked IS-A LAPD letter classes load member functions memory management multiple inheritance Number object-oriented design object-oriented programming operator delete operator+ overloaded parameter pointer polymorphism processor programming language recompilation reference counting relationship reuse run-time scope Section semantics Shape ShapeRep size_t Smalltalk Stack StringRep struct symbolic techniques template Thing Triangle typedef update variables virtual function virtual function table virtual void void operator vptp vtbl Window