variableenv.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 32 行
HH
32 行
// -*- c-basic-offset: 4; related-file-name: "../../lib/variableenv.cc" -*-#ifndef CLICK_VARIABLEENVIRONMENT_HH#define CLICK_VARIABLEENVIRONMENT_HH#include <click/string.hh>#include <click/vector.hh>CLICK_DECLSclass VariableEnvironment { public: VariableEnvironment() { } VariableEnvironment(const VariableEnvironment &ve) { enter(ve); } operator bool() const { return _formals.size() != 0; } int depth() const { return _depths.size() ? _depths.back() : -1; } void enter(const VariableEnvironment &); void enter(const Vector<String> &formals, const Vector<String> &values, int depth); void limit_depth(int); String interpolate(const String &) const; private: Vector<String> _formals; Vector<String> _values; Vector<int> _depths;};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?