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
Contents | 1 |
Figure 21 Analogy Between C structs and C++ classes | 10 |
Figure 23 Declaration of a Stack with Constructors | 16 |
64 other sections not shown
Common terms and phrases
abstract base class algorithm allocated application domain Atom behaviors C++ code C++ program Chapter class interface class member function class object class String CollectionRep compiler Complex concrete data types const char const String& constructor context Coordinate copy create cutover declaration default define delete derived class destructor double EditWindow Employee encapsulation endif envelope class example exception handling exemplar object extern Figure garbage collection global handle header file idiom Imaginary implementation incremental inheritance hierarchy initialization inline inline function instance instantiated int main invoked IS-A LAPD letter classes member functions memory management multiple inheritance Number object-oriented design object-oriented programming operator delete overloaded parameter PathName pointer polymorphism programming language reference counting relationship reuse run-time scope semantics Shape ShapeRep size_t Smalltalk Stack String const StringRep struct structure symbolic techniques Telephone Triangle typedef variables virtual function table virtual functions virtual void void operator vtbl Window