
The Note Context in the rightmost column is only shown in case an annotated program exists. - You can navigate to the annotated program via the annotated slide view (= 'the note context').
| Class Point in C#. | Point.cs | Slide context | - | - |
| Class Point i C++ together with a main function - member functions defined in class definition. | point1.cc | Slide context | - | - |
| The class design of class Point. | point4.h | Slide context | - | - |
| Member function definitions for class Point. | point4.cc | Slide context | - | - |
| Class Point - with in-class initializations. | point5.h | Slide context | - | - |
| Definition of function members. | point5.cc | Slide context | - | - |
| A class with member initializers. | initializers.cc | Slide context | - | - |
| The Point class. | point.h | Slide context | - | - |
| Implementation of the Point class constructors. | point.cc | Slide context | - | - |
| The Rectangle class. | rect.h | Slide context | - | - |
| Implementation of the Rectangle class constructors. | rect.cc | Slide context | - | - |
| Rectangle constructors - with default initialization and subsequent assignments - BAD STYLE. | rect-ass.cc | Slide context | - | - |
| Sample Point and Rectangle constructions. | prog.cc | Slide context | - | - |
| The Point class - with explicit and deleted constructors. | point.h | Slide context | - | - |
| Implementation of the Point class constructors. | point.cc | Slide context | - | - |
| Attempting Point constructions. | prog.cc | Slide context | - | - |
| The Point class - with explicit and defaulted constructors. | point1.h | Slide context | - | - |
| Implementation of the Point class constructors. | point1.cc | Slide context | - | - |
| Point constructions - now OK. | prog1.cc | Slide context | - | - |
| Class Point with a variety of constructors. | point.h | Slide context | - | - |
| Funny implementations of the constructors. | point.cc | Slide context | - | - |
| Use of constructors - with local variables of class type. | prog3.cc | Slide context | - | - |
| An additional Point construction attempt - a trap. | prog2-more.cc | Slide context | - | - |
| An additional Point construction attempt - with use of uniform default initialization. | prog2-modern.cc | Slide context | - | - |
| Class Point with a variety of constructors - including a move constructor. | point.h | Slide context | - | - |
| Funny implementations of the constructors. | point.cc | Slide context | - | - |
| Use of constructors - with local variables of class type. | prog.cc | Slide context | - | - |
| Same program with more comments. | prog-commented.cc | Slide context | - | - |
| Class Point with a destructor. | point.h | Slide context | - | - |
| Implementation of the destructor that reveal its activation. | point.cc | Slide context | - | - |
| Illustration of destructor activation when automatic variables go out of scope . | prog2.cc | Slide context | - | - |
| Class Point - representated as a dynamically allocated array of two doubles . | point.h | Slide context | - | - |
| Implementation of class point - with an insufficient destructor . | point.cc | Slide context | - | - |
| A sample program with memory leaks. | prog.cc | Slide context | - | - |
| Class Point - with a pointer representation - same as before. | point.h | Slide context | - | - |
| Implementation of class point - now with a destructor that deallocates the Point representation. | point.cc | Slide context | - | - |
| A sample program - now without memory leaks. | prog.cc | Slide context | - | - |
| A class Resource and its application in the function use_resource - principles only. | raii-pattern-0.cc | Slide context | - | - |
| A class Resource and its application in the function use_resource - compilable version. | raii-pattern-1.cc | Slide context | - | - |
| The usual class Point - nothing of particular interest. | point.h | Slide context | - | - |
| The usual implementation of class Point - nothing of particular interest. | point.cc | Slide context | - | - |
| An illustration of raw pointers. | raw-ptr1.cc | Slide context | - | - |
| An illustration of unique_ptr<Point> - same example as for raw pointers. | unique-ptr1.cc | Slide context | - | - |
| An illustration of shared_ptr<Point> - same example as for unique_ptr<Point>. | shared-ptr1.cc | Slide context | - | - |
| Another simple illustration of shared_ptr<Point>. | shared-ptr2.cc | Slide context | - | - |
| Similar program with raw pointers. | raw-ptr2.cc | Slide context | - | - |
| The usual class Point - nothing of particular interest. | point.h | Slide context | - | - |
| The usual implementation of class Point - nothing of particular interest. | point.cc | Slide context | - | - |
| Unique_ptr versus raw pointer. | p1.cc | Slide context | - | - |
| Passing unique_ptr as parameter to a function. | p2.cc | Slide context | - | - |
| Passing Point objects in and out of functions. | prog5.cc | Slide context | - | - |
| Class LineSegment WITHOUT copy constructor and and WITHOUT assignment operator. | point-lineseg.h | Slide context | - | - |
| The corresponding cc file - not particularly relevant. | point-lineseg.cc | Slide context | - | - |
| A function that constructs, initializes and assigns LineSegments. | prog.cc | Slide context | - | - |
| Class LineSegment WITH a copy constructor and and WITH an assignment operator. | point-lineseg.h | Slide context | - | - |
| The corresponding cc file with implementations of the copy constructor and the assignment operator. | point-lineseg.cc | Slide context | - | - |
| A function that constructs, initializes and assigns LineSegments. | prog.cc | Slide context | - | - |
| istream conversion to bool. | io-stream-1.cc | Slide context | - | - |
| Class Point with conversion constructor and conversion operator, from and to double. | point1.h | Slide context | - | - |
| Class Point implementation. | point1.cc | Slide context | - | - |
| Use implicit of the conversions. | prog1.cc | Slide context | - | - |
| Class Tripple with Tripple(Point) constructor and a Point conversion operator. | point1.h | Slide context | - | - |
| Class Tripple implementation. | point1.cc | Slide context | - | - |
| Illustration of conversions. | prog1.cc | Slide context | - | - |
| A variant of class Point with static members. | point.h | Slide context | - | - |
| Implementation of class Point. | point.cc | Slide context | - | - |
| A client of class Point. | prog.cc | Slide context | - | - |
| A variant of class Point with static member function for the defaultPoint. | point.h | Slide context | - | - |
| Implementation of class Point. | point.cc | Slide context | - | - |
| A client of class Point. | prog.cc | Slide context | - | - |
| A variant of Point with cached polar representation. | point.h | Slide context | - | - |
| The implementation of class Point - with compilation problems. | point.cc | Slide context | - | - |
| A variant of Point with cached polar representation. | point.h | Slide context | - | - |
| The implementation of class Point - with compilation problems. | point.cc | Slide context | - | - |
| A simple client program of Point. | prog.cc | Slide context | - | - |
| Class Point - almost the usual header file. | point.h | Slide context | - | - |
| Class Point - a variant with explicit use of this. | point.cc | Slide context | - | - |
| A sample use of points, with emphasis on moving. | prog.cc | Slide context | - | - |
| A function f get access to the private state of both class A and B. | friends-sit6.cc | Slide context | - | - |
| Class A provides friendship to class B. | friends-sit2.cc | Slide context | - | - |
| Class A and B are mutual friends of each other - problems in this version. | friends-sit4.cc | Slide context | - | - |
| Class A and B are mutual friends of each other - this version is OK. | friends-sit3.cc | Slide context | - | - |
| A variant were we want ma to be a friend of B and mb to be friend of A - problems in this version. | friends-sit5.cc | Slide context | - | - |
| Class Point - header file. | point.h | Slide context | - | - |
| Class Point - implementation - not important for this example. | point.cc | Slide context | - | - |
| The program including implementation of friend moving functions. | prog.cc | Slide context | - | - |
| Class Point - header file. | point.h | Slide context | - | - |
| Class Point - implementation - including the implementation of operator<<. | point.cc | Slide context | - | - |
| The program that uses the operator - nothing new here. | prog.cc | Slide context | - | - |
| Class Point - header file. | point.h | Slide context | - | - |
| Class Point - implementation - including the implementation of operator<<. | point.cc | Slide context | - | - |
| The program that use the operator. | prog.cc | Slide context | - | - |
| Class Point with operators as members. | point.h | Slide context | - | - |
| Definition of Point member functions. | point.cc | Slide context | - | - |
| A program that illustrates uses the Point operators. | prog.cc | Slide context | - | - |
| Class Point with non-member operators. | point.h | Slide context | - | - |
| Definition of Point member functions and non-member operators. | point.cc | Slide context | - | - |
| An identical program that illustrates uses the Point operators. | prog.cc | Slide context | - | - |
Generated: Tuesday August 1, 2017, 13:29:21