11#include "util/zmorton.hpp"
20template<
unsigned int N,
typename T>
150 inline size_t size(
unsigned int i)
const
168 template <
unsigned int,
typename>
friend class grid_zm;
grid_key_dx is the key to access any element in the grid
__device__ __host__ const size_t(& getSize() const)[N]
Return the size of the grid as an array.
size_t sz[N]
size of the grid
class that store the information of the grid like number of point on each direction and define the in...
void setDimensions(const size_t(&dims)[N])
Reset the dimension of the grid.
grid_zm(const grid_zm< N, S > &g)
construct a grid from another grid
grid_zm(const size_t(&sz)[N])
Construct a grid of a specified size.
__device__ __host__ mem_id LinId(const grid_key_dx< N, ids_type > &gk) const
Linearization of the grid_key_dx.
grid_zm(const size_t &sz)
Construct a grid of a specified size.
void swap(grid_zm< N, T > &g)
swap the grid_sm informations
bool operator==(const grid_zm< N, T > &g)
Check if the two grid_sm are the same.
__device__ __host__ grid_zm< N, T > & operator=(const grid_zm< N, T > &g)
Copy the grid from another grid.
size_t size(unsigned int i) const
friend class grid_zm
It simply mean that all the classes grid are friend of all its specialization.
bool operator!=(const grid_zm< N, T > &g)
Check if the two grid_sm are the same.