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

📄 elemfilter.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
// -*- c-basic-offset: 4; related-file-name: "../../lib/elemfilter.cc" -*-#ifndef CLICK_ELEMFILTER_HH#define CLICK_ELEMFILTER_HH#include <click/element.hh>CLICK_DECLSclass ElementFilter { public:    ElementFilter()			{ }    virtual ~ElementFilter()		{ }    inline bool match_input(Element*, int port);    inline bool match_output(Element*, int port);    inline bool match_port(Element*, bool isoutput, int port);    enum PortType { NONE = -1, INPUT = 0, OUTPUT = 1 };    virtual bool check_match(Element* e, int port, PortType);    void filter(Vector<Element*>&);};class CastElementFilter : public ElementFilter { public:    CastElementFilter(const String&);    bool check_match(Element*, int, PortType);  private:    String _what;};inline boolElementFilter::match_input(Element* e, int port){    return check_match(e, port, INPUT);}inline boolElementFilter::match_output(Element* e, int port){    return check_match(e, port, OUTPUT);}inline boolElementFilter::match_port(Element* e, bool isoutput, int port){    return check_match(e, port, (PortType) isoutput);}CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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