This class work as a functor. More...
This class work as a functor.
For each number in the boost::mpl::vector (for example 3 6) set the properties of the vertex at the specified id (3 6) with pos[d] * spacing[d] with d running from 0 to 1, pos[d] the position id of the vertex spacing the grid spacing
Example
if we give a grid_key of dimension 2 4x4 the expression "pos[d] * spacing[d]" will assume the value
(0.0 0.0) (0.25 0.0) ...... (1.0 0.0) (0.0 0.25)................. (1.0 0.25) .................................... (0.0 1.0).................. (1.0 1.0)
and the properties 3 6 will be filled with the numbers 0.0 0.0 ....... 1.0 1.0 progressively
dim | Dimensionality of the cartesian grid |
dT | type of the domain |
G_v | vertex type object |
v | boost::mpl::vector containing all the index to fill |
Definition at line 108 of file DistGraphFactory.hpp.
#include <DistGraphFactory.hpp>
Public Member Functions | |
fill_prop_v (G_v &g_v, const dT(&szd)[dim], grid_key_dx< dim > &gk, const grid_sm< dim, void > &gs) | |
Fill the object from where to take the properties. | |
template<typename T > | |
void | operator() (T &t) const |
It call the function for each property we want to copy. | |