Index

1. List implementation in C++


2. List specification


3. C++ definition of the list methods in a class


4. Comments on the class


5. Example 1: how might this code be used?


6. Example 2


7. Example 3, 4


8. Diagram showing a possible implementation of the list


9. slist.h revisited


10. The C++ rule of three!


11. Output


12. slist::slist (void)


13. Deconstructor (first of the three!)


14. slist::delete_elements


15. Copy operator (second of the big three!)


16. slist::duplicate_elements


17. Assignment operator (3rd of the big three!)


18. slist::empty


19. slist::is_empty


20. slist::cons (int i)


21. slist:head


22. slist::tail


23. Tutorial Questions


Index

1. List implementation in C++
2. List specification
3. C++ definition of the list methods in a class
4. Comments on the class
5. Example 1: how might this code be used?
6. Example 2
7. Example 3, 4
8. Diagram showing a possible implementation of the list
9. slist.h revisited
10. The C++ rule of three!
11. Output
12. slist::slist (void)
13. Deconstructor (first of the three!)
14. slist::delete_elements
15. Copy operator (second of the big three!)
16. slist::duplicate_elements
17. Assignment operator (3rd of the big three!)
18. slist::empty
19. slist::is_empty
20. slist::cons (int i)
21. slist:head
22. slist::tail
23. Tutorial Questions
Index

This document was produced using groff-1.22.