📄 boxiterator.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.
//
// DTGraves
#ifndef _BOX_ITERATOR_H_
#define _BOX_ITERATOR_H_
#include <cstdlib>
#include "Box.H"
#include "REAL.H"
#include "SPACE.H"
#include "Tuple.H"
#include "IntVect.H"
class BoxIterator
{
public:
BoxIterator ();
BoxIterator(const Box& bx);
void setBox(const Box& bx);
void define (const Box& bx);
BoxIterator (const BoxIterator& tx);
~BoxIterator ();
void begin();
void reset();
void operator++();
void next();
const IntVect& operator() () const;
bool ok();
protected:
IntVect m_current;
IntVect m_boxLo;
IntVect m_boxHi;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -