|
| template<typename exp1 > |
| __device__ __host__ | grid_key_dx (const grid_key_dx_expression< dim, exp1 > &exp) |
| | Constructor from expression. More...
|
| |
|
__device__ __host__ | grid_key_dx () |
| | Constructor.
|
| |
| __device__ __host__ | grid_key_dx (std::initializer_list< long int > p1) |
| | Constructor from initializer list. More...
|
| |
| __device__ __host__ | grid_key_dx (const grid_key_dx< dim, index_type > &key) |
| | Constructor from an other key. More...
|
| |
| __device__ __host__ | grid_key_dx (const size_t(&k)[dim]) |
| | Constructor from buffer reference. More...
|
| |
| __device__ __host__ | grid_key_dx (const long int(&k)[dim]) |
| | Constructor from buffer reference. More...
|
| |
| __device__ __host__ | grid_key_dx (const short(&k)[dim]) |
| | Constructor from buffer reference. More...
|
| |
| __device__ __host__ | grid_key_dx (const unsigned short(&k)[dim]) |
| | Constructor from buffer reference. More...
|
| |
| __device__ __host__ | grid_key_dx (const int(&k)[dim]) |
| | Constructor from buffer reference. More...
|
| |
| __device__ __host__ | grid_key_dx (const unsigned int(&k)[dim]) |
| | Constructor from buffer reference. More...
|
| |
| template<typename ... T> |
| | grid_key_dx (const comb< dim > &cmb) |
| | Construct a grid key from a list of numbers. More...
|
| |
| template<typename ... T> |
| __device__ __host__ | grid_key_dx (const size_t v, const T...t) |
| | Construct a grid key from a list of numbers. More...
|
| |
|
__device__ __host__ grid_key_dx< dim, index_type > | move (int i, int m) const |
| |
|
void | zero () |
| | Set to zero the key.
|
| |
|
void | one () |
| | Set to one the key.
|
| |
|
void | invalid () |
| | Set to invalid the key.
|
| |
| bool | isValid () |
| | Check if the key is invalid (all components set to -1) More...
|
| |
| __device__ __host__ grid_key_dx< dim, index_type > & | operator+= (const grid_key_dx< dim, index_type > &p) |
| | sum a grid_key More...
|
| |
| __device__ __host__ grid_key_dx< dim, index_type > & | operator-= (const grid_key_dx< dim, index_type > &p) |
| | sum a grid_key More...
|
| |
| __device__ __host__ grid_key_dx_sum< dim, grid_key_dx< dim, index_type >, grid_key_dx< dim, index_type > > | operator+ (const grid_key_dx< dim, index_type > &p) const |
| | sum a grid_key to the grid_key More...
|
| |
| __device__ __host__ grid_key_dx_sum< dim, grid_key_dx< dim >, Point< dim, long int > > | operator+ (const Point< dim, long int > &p) const |
| | sum a point to the grid_key More...
|
| |
| __device__ __host__ grid_key_dx_sum< dim, grid_key_dx< dim >, comb< dim > > | operator+ (const comb< dim > &cmb) const |
| | sum an a combination to the grid_key More...
|
| |
| __device__ __host__ grid_key_dx_sub< dim, grid_key_dx< dim, index_type >, grid_key_dx< dim, index_type > > | operator- (const grid_key_dx< dim, index_type > &cmb) const |
| | sum an a combination to the grid_key More...
|
| |
| template<typename T > |
| __device__ __host__ grid_key_dx_sub< dim, grid_key_dx< dim, index_type >, grid_key_dx_expression< dim, T > > | operator- (const grid_key_dx_expression< dim, T > &cmb) const |
| | sum this key to another grid expression More...
|
| |
| template<unsigned int dim_t> |
| bool | operator== (const grid_key_dx< dim_t, index_type > &key_t) const |
| | Check if two key are the same. More...
|
| |
| template<unsigned int dim_t> |
| bool | operator!= (const grid_key_dx< dim_t, index_type > &key_t) |
| | Check if two key are the same. More...
|
| |
| bool | operator< (const grid_key_dx< dim, index_type > &key_t) const |
| | Check order of two keys. More...
|
| |
| template<typename a , typename ... T> |
| __device__ __host__ void | set (a v, T...t) |
| | set the Key from a list of numbers More...
|
| |
| const long int(& | get_k () const)[dim] |
| | Return the internal k structure. More...
|
| |
| Point< dim, long int > | toPointS () const |
| | Convert to a point the grid_key_dx. More...
|
| |
| std::string | to_string () const |
| | convert the information into a string More...
|
| |
| template<typename typeT = size_t> |
| __host__ __device__ Point< dim, typeT > | toPoint () const |
| | Convert to a point the grid_key_dx. More...
|
| |
| __device__ __host__ mem_id | value (size_t i) const |
| | Get the i index. More...
|
| |
| __device__ __host__ index_type | operator[] (index_type i) const |
| | Get the i index. More...
|
| |
| __device__ __host__ index_type | get (index_type i) const |
| | Get the i index. More...
|
| |
| __device__ __host__ void | set_d (index_type i, index_type id) |
| | Set the i index. More...
|
| |
|
template<typename a , typename ... T> |
| | grid_key_dx (a v, T...t) |
| |
|
template<typename a , typename ... T> |
| void | set (a v, T...t) |
| |
template<unsigned int dim, typename index_type>
class grid_key_dx< dim, index_type >
grid_key_dx is the key to access any element in the grid
Given a grid in general a set of indexes define one element in the grid For example 2 indexes identify one element on a two dimensional grid, 3 indexes on a 3 dimensional grid ...
- Template Parameters
-
| dim | dimensionality of the grid |
Definition at line 18 of file grid_key.hpp.