grid_key_dx is the key to access any element in the grid More...
grid_key_dx is the key to access any element in the grid
grid_key_dx is the key to access any element in the grid
dim | dimensionality of the grid |
T | type of the space float, double, complex, ... |
Definition at line 22 of file space_key.hpp.
#include <space_key.hpp>
Public Member Functions | |
space_key_dx () | |
Constructor. | |
space_key_dx (T(&k)[dim]) | |
Constructor from buffer. | |
space_key_dx (const T(&k)[dim]) | |
Constructor from buffer. | |
space_key_dx (const T v, const T...t) | |
Construct a grid key from a list of numbers. | |
void | zero () |
Set to zero the key. | |
void | invalid () |
Set to invalid the key. | |
template<unsigned int dim_t> | |
bool | operator== (space_key_dx< dim_t, T > &key_t) |
template<typename a , typename ... T> | |
void | set (a v, T...t) |
set the grid key from a list of numbers | |
mem_id | value (size_t i) const |
Get the i index. | |
mem_id | get (size_t i) const |
Get the i index. | |
void | set_d (size_t i, mem_id id) |
Set the i index. | |
Data Fields | |
mem_id | k [dim] |
structure that store all the index | |
Private Member Functions | |
template<typename a , typename ... T> | |
void | invert_assign (a v, T...t) |
Recursively invert the assignment. | |
template<typename a , typename ... T> | |
void | invert_assign (a v) |
void | invert_assign () |
|
inline |
Constructor.
Definition at line 27 of file space_key.hpp.
|
inline |
Constructor from buffer.
Definition at line 31 of file space_key.hpp.
|
inline |
Constructor from buffer.
Definition at line 38 of file space_key.hpp.
|
inline |
Construct a grid key from a list of numbers.
Definition at line 45 of file space_key.hpp.
|
inline |
Get the i index.
i | index to get |
Definition at line 127 of file space_key.hpp.
|
inline |
Set to invalid the key.
Definition at line 63 of file space_key.hpp.
|
inlineprivate |
Definition at line 172 of file space_key.hpp.
|
inlineprivate |
Definition at line 167 of file space_key.hpp.
|
inlineprivate |
Recursively invert the assignment.
Recursively invert the assignment at compile-time
Definition at line 161 of file space_key.hpp.
|
inline |
Definition at line 79 of file space_key.hpp.
|
inline |
set the grid key from a list of numbers
Definition at line 101 of file space_key.hpp.
|
inline |
Set the i index.
Set the i index
i | index to set |
id | value to set |
Definition at line 140 of file space_key.hpp.
|
inline |
Get the i index.
i | index to get |
Definition at line 114 of file space_key.hpp.
|
inline |
Set to zero the key.
Definition at line 53 of file space_key.hpp.
mem_id space_key_dx< dim, T >::k[dim] |
structure that store all the index
Definition at line 152 of file space_key.hpp.