dic_impl.prog
上传用户:gzelex
上传日期:2007-01-07
资源大小:707k
文件大小:1k
开发平台:

MultiPlatform

  1. begingroup
  2. parskip 0ptbaselineskip 0pt
  3. tt {ttobeyspacesgdef {hskip.5em}} defpar{leavevmodeendgraf} catcode``=active
  4. obeylines ttverbatim
  5. typedef ... dic_impl_item;
  6. class dic_impl {
  7.  virtual int  cmp(GenPtr, GenPtr) const = 0;
  8.  virtual int  int_type()          const = 0;
  9.  virtual void clear_key(GenPtr&)  const = 0;
  10.  virtual void clear_inf(GenPtr&)  const = 0;
  11.  virtual void copy_key(GenPtr&)   const = 0;
  12.  virtual void copy_inf(GenPtr&)   const = 0;
  13. public:
  14.  dic_impl();
  15.  dic_impl(const dic_impl&);
  16. ~dic_impl();
  17.  dic_impl& operator=(const dic_impl&);
  18.  GenPtr key(dic_impl_item p)  const;
  19.  GenPtr inf(dic_impl_item p)  const;
  20.  dic_impl_item insert(GenPtr,GenPtr);
  21.  dic_impl_item lookup(GenPtr)  const;
  22.  dic_impl_item first_item()    const;
  23.  dic_impl_item next_item(dic_impl_item) const;
  24.  dic_impl_item item(void* p) const { return dic_impl_item(p); }
  25.  void    change_inf(dic_impl_item,GenPtr);
  26.  void    del_item(dic_impl_item);
  27.  void    del(GenPtr);
  28.  void    clear();
  29.  int     size() const;
  30. };
  31. endgroup