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

📄 key-set.h

📁 可以在ns-2中进行仿真的SPIN路由协议的源码
💻 H
字号:
#ifndef keyset_h#define keyset_h#include <object.h>#include <mit/rca/meta/hash-tab.h>class KeySet ;class KeySet : public HashTab { public:  KeySet();  ~KeySet();  command(int argc, const char*const* argv);  void Union(KeySet *set2);  int Numelements() const { return elements_ ; }  inline int Emptyset() {     if (elements_ == 0)       return 1 ;     return 0;  };  KeySet *Copy();  int Subset(KeySet *set);  void Intersection(KeySet *set2);  void Subtract(KeySet *set1);  int Eq(KeySet *set1);  inline int Neq(KeySet *y)     {       if (Eq(y) == 1) 	return 0;       return 1; }  void Pp(char *desc = NULL);  void Add(char *key, char *element = NULL);  char *SetToList();  int Member(char *key);};#endif

⌨️ 快捷键说明

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