Home | History | Annotate | Download | only in utils

Lines Matching full:list

18 // Templated list class.  Normally we'd use STL, but we don't have that.
21 // Objects are copied into the list with the '=' operator or with copy-
25 // The only class you want to use from here is "List".
36 * Doubly-linked list. Instantiate with "List<MyClass> myList".
38 * Objects added to the list are copied using the assignment operator,
42 class List
46 * One element in the list.
60 friend class List;
68 * Iterator for walking through the list.
134 * Incr/decr, used to move through the list.
159 friend class List;
163 List() {
166 List(const List<T>& src) { // copy-constructor
170 virtual ~List() {
178 List<T>& operator=(const List<T>& right);
180 /* returns true if the list is empty */
183 /* return #of elements in list */
206 /* add the object to the head or tail of the list */
244 /* remove all contents of the list */
261 * list.
299 * It sits in the middle of a circular list of nodes. The iterator
308 * The simplest way to do this would be to clear out the target list and
313 List<T>& List<T>::operator=(const List<T>& right)