label.hpp
来自「FreeFem++可以生成高质量的有限元网格。可以用于流体力学」· HPP 代码 · 共 20 行
HPP
20 行
#ifndef LABEL_HPP#define LABEL_HPP class Label { // reference number for the physics friend inline ostream& operator <<(ostream& f,const Label & r ) { f << r.lab ; return f; } friend inline istream& operator >>(istream& f, Label & r ) { f >> r.lab ; return f; } public: int lab; Label(int r=0):lab(r){} bool onGamma() const { return lab;} int operator!() const{return !lab;} bool operator<(const Label & r) const {return lab < r.lab;} bool operator==(const Label & r) const {return lab == r.lab;} bool operator>(const Label & r) const { return lab > r.lab;} };#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?