📄 satable.hh
字号:
#ifndef CLICK_SATABLE_HH#define CLICK_SATABLE_HH#include <click/element.hh>#include <click/ipaddress.hh>#include <click/etheraddress.hh>#include <click/bighashmap.hh>#include <click/glue.hh>#include "sadatatuple.hh"CLICK_DECLSclass SATable : public Element { public: SATable(); ~SATable(); const char *class_name() const { return "SATable"; } String print_sa_data(); int insert(SPI this_spi , SADataTuple SA_data) ; int remove(unsigned int spi); SADataTuple * lookup(SPI this_spi);private: //Defines a click hashmap object the SA table in our case typedef HashMap<SPI,SADataTuple> STable; typedef STable::const_iterator SIter; STable _table;};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -