#ifndef SIMPLELIST_H #define SIMPLELIST_H #include "mystring.h" template struct TemplNode { TemplNode(const T& text) :m_item(text),m_next(0) {}; T m_item; TemplNode* m_next; }; template class SimpleList { public: SimpleList(); ~SimpleList(); void append(const T& item); void clear(); int size(); T* first(); T* next(); void removeFirst(); void remove(T* item); protected: TemplNode* m_list; TemplNode* m_current; TemplNode* m_last; int m_size; }; template class SimpleList; #endif