// -*- C++ -*- /*************************************************************************** * * The IPPL Framework * * * Visit http://people.web.psi.ch/adelmann/ for more details * ***************************************************************************/ #ifndef GUARD_CELL_SIZES_H #define GUARD_CELL_SIZES_H // include files #include "Index/NDIndex.h" #include template class GuardCellSizes { public: GuardCellSizes() { for (unsigned d=0; d(const GuardCellSizes&) = default; GuardCellSizes& operator=(const GuardCellSizes& gc) { for (unsigned d=0; d& r) const ; bool operator==(const GuardCellSizes& r) const; private: unsigned Left[Dim]; unsigned Right[Dim]; }; template inline NDIndex AddGuardCells(const NDIndex& idx, const GuardCellSizes& g) { NDIndex ret; for (unsigned int d=0; d // Lexigraphic compare of two GuardCellSizes so we can // use them as a Key in a map. inline bool GuardCellSizes::operator<(const GuardCellSizes& r) const { for (unsigned d=0; d inline bool GuardCellSizes::operator==(const GuardCellSizes& r) const { for (unsigned d=0; d std::ostream& operator<<(std::ostream&,const GuardCellSizes&); ////////////////////////////////////////////////////////////////////// #include "Field/GuardCellSizes.hpp" #endif // GUARD_CELL_SIZES_H /*************************************************************************** * $RCSfile: GuardCellSizes.h,v $ $Author: adelmann $ * $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:26 $ * IPPL_VERSION_ID: $Id: GuardCellSizes.h,v 1.1.1.1 2003/01/23 07:40:26 adelmann Exp $ ***************************************************************************/