hashta~1.h

来自「一百个病毒的源代码 包括熊猫烧香等 极其具有研究价值」· C头文件 代码 · 共 48 行

H
48
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?