// -*-c++-*- #ifndef LIST_INL #define LIST_INL template inline List::List() { set_empty(); } template inline void List::set_empty() { top_ = bottom_ = 0; size_ = 0; } template inline void List::remove( Cursor me ) { if ( me.ok() ){ Link *lp = me.pointer(); lp->remove(*this); delete lp; size_--; } } template inline int List::size() const { return size_; } template inline Cursor List::top()const { return Cursor( *this, top_ ); } template inline Cursor List::bottom()const { return Cursor( *this, bottom_ ); } #endif