//--------------------------------------------------------------------------- #ifndef cellListH #define cellListH //--------------------------------------------------------------------------- class TCellList; class TNode; typedef TCellList * pCellList; typedef TNode * pNode; #include "cell.h" class TCellList { public: void setFirst(); bool goNext(); // 0-end of list,set to 1st; 1-succes TCell *actual(); void Add(pCell pa); TCellList(); ~TCellList(); void destroyContent(); void destroyList(); bool isEmpty(); void* forEach(cellMem1par f, void* p); int getCount() { return count; }; protected: pNode pNodeActual,pNodeFirst,pNodeLast; int count; }; class TNode { public: pCell content(); pNode getNext(); void setNext(pNode pa); TNode (pCell pa); ~TNode(); void destroyContent(); protected: pNode pNodeNext; pCell pCellContent; }; #endif