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

📄 lohiside.h

📁 自适应网格划分通用程序包
💻 H
字号:
// This software is copyright (C) by the Lawrence Berkeley
// National Laboratory.  Permission is granted to reproduce
// this software for non-commercial purposes provided that
// this notice is left intact.
// 
// It is acknowledged that the U.S. Government has rights to
// this software under Contract DE-AC03-765F00098 between
// the U.S.  Department of Energy and the University of
// California.
//
// This software is provided as a professional and academic
// contribution for joint exchange. Thus it is experimental,
// is provided ``as is'', with no warranties of any kind
// whatsoever, no support, no promise of updates, or printed
// documentation. By using this software, you acknowledge
// that the Lawrence Berkeley National Laboratory and
// Regents of the University of California shall have no
// liability with respect to the infringement of other
// copyrights by any part of this software.
//

#ifndef _LOHISIDE_H_
#define _LOHISIDE_H_


class Side
{
public:

  enum LoHiSide {Invalid=-1, Lo=0, Hi, NUMSIDES};

  Side() {};

  ~Side() {};

  friend 
  Side::LoHiSide 
  flip(Side::LoHiSide side);

  static 
  Side::LoHiSide 
  flip(Side::LoHiSide side);


  friend
  int 
  sign(Side::LoHiSide side);
};




class SideIterator
{
public:


  SideIterator();


  ~SideIterator() {};



  void begin();


  void reset()
  {begin();}


  void next();


  void operator++();



  Side::LoHiSide operator() () const;


  bool ok() const;

private:
  int current;
};

#endif

⌨️ 快捷键说明

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