26 #ifndef MLN_CORE_GRIDS_HH
27 # define MLN_CORE_GRIDS_HH
33 # include <mln/core/concept/regular_grid.hh>
34 # include <mln/core/def/coord.hh>
35 # include <mln/metal/bool.hh>
47 typedef metal::true_ aligned;
53 typedef metal::true_ aligned;
59 typedef metal::false_ aligned;
65 typedef metal::true_ aligned;
74 template <
unsigned dim>
struct regular_grid_from_dim_;
76 template <>
struct regular_grid_from_dim_<1> {
typedef grid::tick ret; };
77 template <>
struct regular_grid_from_dim_<2> {
typedef grid::square ret; };
78 template <>
struct regular_grid_from_dim_<3> {
typedef grid::cube ret; };
83 # define mln_regular_grid_from_dim(N) typename mln::regular_grid_from_dim_< N >::ret
86 #endif // ! MLN_CORE_GRIDS_HH