home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / keysrt.zip / imysrt.hpp < prev    next >
Text File  |  1996-02-23  |  591b  |  31 lines

  1.  
  2. #ifndef MY_SORTED
  3. #define MY_SORTED
  4.  
  5. #include <ivsrtset.h>
  6.  
  7. template < class Element >
  8. class IMyOps : public IEOps < Element >
  9. {
  10. public:
  11.   inline IString & key(Element const& element) const
  12.   {
  13.   return (e1->Name());
  14.   }
  15. }
  16.  
  17.    template < class Element >
  18. class IGMySortedSet : public IVGKeySortedSet < Element, IMyOps < Element > >
  19. {
  20. public:
  21.  
  22. typedef IVSortedSetOnBaseCursor < Element,
  23.                IGSortedSet < Element, IMyOps < Element > > > Cursor;
  24.  
  25. IMySortedSet (INumber n = 100)
  26.   : IVGSortedSet < Element, IMyOps < Element > > (n)
  27.    {   }
  28. };
  29. #endif
  30.  
  31.