⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hashtable.h

📁 Larbin互联网蜘蛛索引系统
💻 H
字号:
// Larbin// Sebastien Ailleret// 23-11-99 -> 14-01-00/* class hashTable * This class is in charge of making sure we don't crawl twice the same url */#ifndef HASHTABLE_H#define HASHTABLE_H#include "types.h"#include "xutils/url.h"class hashTable { private:  ssize_t size;  char *table; public:  /* constructor */  hashTable (bool create);  /* destructor */  ~hashTable ();  /* save the hashTable in a file */  void save();  /* test if this url is allready in the hashtable   * return true if it has been added   * return false if it has allready been seen   */  bool test (url *U);  /* set a url as present in the hashtable   */  void set (url *U);  /* add a new url in the hashtable   * return true if it has been added   * return false if it has allready been seen   */  bool testSet (url *U);};#endif // HASHTABLE_H

⌨️ 快捷键说明

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