// ListNode.H // Defines the Node structure for a Singularly linked list // // D. L. Frey // September 14, 1999 // // Defines only private constructor for use by List // and private data members //----------------------------------------------------- #ifndef _ListNode_H #define _ListNode_H #include // For NULL // friend class partial declarations template class List; template class ListItr; // the Singly-Linked ListNode class template class ListNode { private: // constructor ListNode( const Object & theElement = Object( ), ListNode * n = NULL); // the data Object element; // Link to next node ListNode *next; friend class List; friend class ListItr; }; #endif