Class ListNode


template class ListNode<class Type>
Programmer: Ryan Davis

Description:

This is a private class, used only by list. If and when our compilers become template literate enough to allow for fully usable nested classes in templates, this file will disappear... This is the only way (with current compilers) that we can get the effect of embedded template classes... sorry folks, but friends are who you show your private parts to...

Protected Methods:

friend void testStack ();


friend void testQueue ();


virtual ~ListNode ();


virtual Type & key ();


virtual ListNode * next ();


virtual void next (ListNode * theNext);


virtual ListNode * prev ();


virtual void prev (ListNode * thePrev);


Protected Members:


Type myKey;



ListNode * myNext;



ListNode * myPrev;