5 #include "Shape/Point.hpp"
6 #include "Shape/Box.hpp"
7 #include <boost/fusion/include/vector.hpp>
8 #include "Grid/Encap.hpp"
25 template<
unsigned int dim,
typename T>
43 for (
size_t d = 0 ; d < dim ; d++)
46 for (
size_t d = 0 ; d < dim ; d++)
59 for (
size_t d = 0 ; d < dim ; d++)
62 for (
size_t d = 0 ; d < dim ; d++)
101 for (
size_t d = 0 ; d < dim ; d++)
104 for (
size_t d = 0 ; d < dim ; d++)
117 for (
size_t d = 0 ; d < dim ; d++)
120 for (
size_t d = 0 ; d < dim ; d++)
154 for (
size_t d = 0 ; d < dim ; d++)
164 template<
typename S>
void rescale(S (& sp)[dim])
166 for (
size_t d = 0 ; d < dim ; d++)
180 for (
size_t d = 0 ; d < dim ; d++)
183 for (
size_t d = 0 ; d < dim ; d++)
195 template<
typename S>
void mul(S (& sp)[dim])
197 for (
size_t d = 0 ; d < dim ; d++)
200 for (
size_t d = 0 ; d < dim ; d++)
213 for (
size_t i = 0 ; i < dim ; i++)
223 #include "Grid/Encap.hpp"
SpaceBox(const Box< dim, T > &b)
constructor from a box
This class represent an N-dimensional box.
T getLow(int i) const
get the i-coordinate of the low bound interval of the box
SpaceBox< dim, T > & operator=(const Box< dim, T > &b)
Define the box from a box shape.
void mul(T(&sp)[dim])
multiply the space box with the coefficient defined in sp
T getHigh(int i) const
get the high interval of the box
void setHigh(int i, T val)
set the high interval of the box
This class implement the point shape in an N-dimensional space.
SpaceBox(const SpaceBox< dim, T > &b)
constructor from a SpaceBox
static const unsigned int p1
Low point.
T get(int i) const
Get coordinate.
SpaceBox(std::initializer_list< T > p1, std::initializer_list< T > p2)
Constructor from initializer list.
void rescale(T(&sp)[dim])
Re-scale the space box with the coefficient defined in sp.
this structure encapsulate an object of the grid
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.
void rescale(S(&sp)[dim])
Re-scale the space box with the coefficient defined in sp.
SpaceBox(const encapc< dim_s, Box< dim, T >, Mem > &box)
Constructor from a Box.
SpaceBox(const encapc< dim_s, SpaceBox< dim, T >, Mem > &box)
Constructor from a Box.
Point< dim, T > rnd()
Generate a random point inside the box.
void mul(S(&sp)[dim])
multiply the space box with the coefficient defined in sp
SpaceBox(const Box< dim, S > &b)
constructor from a Box of different type