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

📄 sorttest.hh

📁 Click is a modular router toolkit. To use it you ll need to know how to compile and install the sof
💻 HH
字号:
// -*- c-basic-offset: 4 -*-#ifndef CLICK_SORTTEST_HH#define CLICK_SORTTEST_HH#include <click/element.hh>CLICK_DECLS/*=cSortTest([keywords])=s testruns regression tests for click_qsort=dSortTest runs click_qsort regression tests at initialization time. Itdoes not route packets.If additional arguments are provided, SortTest will not perform its normaltests.  Instead, it will sort those arguments and optionally print out theresults.  At userlevel a file can be sorted as well.Keyword arguments are:=over 8=item FILEFilename.  Sorts the lines of FILE.=item NUMERICBoolean.  Sort values as numeric.  Default is false.=item REVERSEBoolean.  Reverse sort values.  Default is false.=item PERMUTEBoolean.  Stable sort values.  Default is false.=item STDCBoolean.  Use standard C qsort, not Click sort.  Default is false.=item OUTPUTBoolean.  If true, results of the extra sort are printed to standard output.Default is false.=back*/class SortTest : public Element { public:    SortTest();    ~SortTest();    const char *class_name() const		{ return "SortTest"; }    int configure(Vector<String> &, ErrorHandler *);    int initialize(ErrorHandler *);  private:    Vector<String> _strvec;    Vector<size_t> _sizevec;    Vector<int> _permute;    bool _reverse;#if CLICK_USERLEVEL    bool _output;    bool _stdc;#endif    int initialize_vec(ErrorHandler *);};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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