// ------------------------------------------------------------------------ // A cell contains a T* and a link. Cells are used to build lists. // A. Fischer June 13, 2000 file: cell.hpp // ------------------------------------------------------------------------ #pragma once #include using namespace std; template class Linear; // ------------------------------------------------------------------------ template class Cell { friend class Linear; private: // ------------------------------------------------------------ T* data; Cell* next; Cell(T* e = NULL, Cell* p = NULL ): data(e), next(p){ } ~Cell(){ cout <<"\n Deleting Cell " < inline ostream& operator<<(ostream& out, const Cell& c){return c.print(out);}