8 #ifndef OPENFPM_NUMERICS_SRC_DRAW_POINTITERATOR_HPP_
9 #define OPENFPM_NUMERICS_SRC_DRAW_POINTITERATOR_HPP_
57 template<
unsigned int dim,
typename T,
typename Decomposition>
74 for (
size_t i = 0 ; i < dim ; i++)
79 for (
size_t i = 0 ; i < dim ; i++)
87 for (
size_t i = 0 ; i < dim ; i++)
92 for (
size_t i = 0 ; i < dim ; i++)
105 for (
size_t i = 0 ; i < dim ; i++)
117 :
grid_dist_id_iterator_dec<
Decomposition>(dec, sz,
getStart(sz,domain,sub_domain,
sp),
getStop(sz,domain,sub_domain,
sp)),sub_domain(sub_domain),domain(domain)
166 for (
size_t i = 0 ; i < dim ; i++)
Box< dim, T > getBoxMargins()
Return the real Margin of the box.
PointIterator & operator++()
Next point.
T getLow(int i) const
get the i-coordinate of the low bound interval of the box
grid_key_dx is the key to access any element in the grid
Box< dim, T > sub_domain
sub_domain
Given the decomposition it create an iterator.
T getHigh(int i) const
get the high interval of the box
this class draw particles on subset of grid-like position
void setHigh(int i, T val)
set the high interval of the box
This class implement the point shape in an N-dimensional space.
PointIterator(Decomposition &dec, size_t(&sz)[dim], const Box< dim, T > &domain, Box< dim, T > &sub_domain)
Draw Particles.
Point< dim, T > ap
Actual point.
grid_key_dx< Decomposition::dims > start
start key
bool isNext()
Check if there is the next element.
mem_id get(size_t i) const
Get the i index.
This class define the domain decomposition interface.
grid_key_dx< Decomposition::dims > get()
Get the actual global key of the grid.
grid_dist_id_iterator_dec< Decomposition > & operator++()
Get the next element.
grid_key_dx< Decomposition::dims > getStart()
Get the starting point of the sub-grid we are iterating.
grid_key_dx< Decomposition::dims > stop
stop key
void setLow(int i, T val)
set the low interval of the box
This class represent an N-dimensional box.
This class is a trick to indicate the compiler a specific specialization pattern. ...
grid_key_dx< Decomposition::dims > getStop()
Get the starting point of the sub-grid we are iterating.
void set_d(size_t i, mem_id id)
Set the i index.
Box< dim, T > domain
domain