hashmgr.hxx

来自「管理项目进度工具的原代码」· HXX 代码 · 共 29 行

HXX
29
字号
#ifndef _HASHMGR_HXX_
#define _HASHMGR_HXX_

#include "htypes.hxx"

class HashMgr
{
  int             tablesize;
  struct hentry * tableptr;

public:
  HashMgr(const char * tpath);
  ~HashMgr();

  struct hentry * lookup(const char *) const;
  int hash(const char *) const;
  struct hentry * walk_hashtable(int & col, struct hentry * hp) const;
  int get_tablesize() { return tablesize; }

private:
  HashMgr( const HashMgr & ); // not implemented
  HashMgr &operator=( const HashMgr & ); // not implemented
  int load_tables(const char * tpath);
  int add_word(const char * word, int wl, const char * ap, int al);

};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?