template<unsigned int dim, typename T>
class encapc< dim, T, typename memory_traits_inte< T >::type >
this structure encapsulate an object of the grid
This structure encapsulate an object of the grid It give the possibility to select the property in a secondary moment
Can be thought as a reference to an object of the grid. So every time we use the term encapsulated object we mean reference to object
- Note
- A vector is a 1D grid
- Parameters
-
dim | Dimensionality of the grid |
T | type of object the grid store |
Definition at line 712 of file Encap.hpp.
|
__device__ __host__ | encapc (typename memory_traits_inte< T >::type &data, size_t k) |
| constructor require a key and a memory data
|
|
template<unsigned int p> |
__device__ __host__ auto | get () -> decltype(boost::fusion::at_c< p >(data).mem_r.operator[](k)) |
| Access the data. More...
|
|
template<unsigned int p> |
__device__ __host__ auto | get () const -> decltype(boost::fusion::at_c< p >(data).mem_r.operator[](k)) |
| Access the data. More...
|
|
__device__ __host__ | encapc (const encapc< dim, T, Mem > &ec) |
|
__device__ __host__ encapc< dim, T, Mem > & | operator= (const encapc< dim, T, Mem > &ec) |
| Assignment. More...
|
|
__device__ __host__ encapc< dim, T, Mem > & | operator= (const encapc< dim, T, Mem2 > &ec) |
| Assignment. More...
|
|
__device__ __host__ encapc< dim, T, Mem > & | operator= (const T &obj) |
| Assignment. More...
|
|
__device__ __host__ void | private_set_data_k (Mem &data_c, size_t k) |
|
__device__ __host__ Mem & | private_get_data () |
|
__device__ __host__ size_t | private_get_k () |
|
__device__ __host__ size_t | private_set_k (unsigned int k) |
|