11 #include "SpaceBox.hpp"
13 #define INVALID_GHOST 9223372036854775807
38 template<
unsigned int dim,
typename T>
50 for (
size_t i = 0 ; i < dim ; i++)
60 for (
size_t i = 0 ; i < dim ; i++)
70 for (
size_t i = 0 ; i < dim ; i++)
98 for (
size_t i = 0 ; i < dim ; i++)
100 if (this->
getLow(i) == -INVALID_GHOST)
return true;
101 if (this->
getHigh(i) == INVALID_GHOST)
return true;
116 template<
unsigned int dim>
126 Padding(std::initializer_list<long int>
p1, std::initializer_list<long int>
p2)
T getLow(int i) const
get the i-coordinate of the low bound interval of the box
Ghost(const Ghost< dim, S > &g)
T getHigh(int i) const
get the high interval of the box
Class that contain Padding information on each direction positive and Negative direction.
void setHigh(int i, T val)
set the high interval of the box
This class implement the point shape in an N-dimensional space.
Ghost< dim, T > & operator/=(const Point< dim, T > &p)
Divide component wise the ghost box with a point.
static const unsigned int p1
Low point.
void setLow(int i, T val)
set the low interval of the box
This class represent an N-dimensional box.
static const unsigned int p2
High point.
Box< dim, T > & operator/=(const Point< dim, T > &p)
Divide component wise each box points with a point.
Padding(std::initializer_list< long int > p1, std::initializer_list< long int > p2)
Constructor from initializer list.
void set(std::initializer_list< T > p1, std::initializer_list< T > p2)
Constructor from initializer list.
bool isInvalidGhost()
check if the Ghost is valid