this structure encapsulate an object of the grid More...
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
dim | Dimensionality of the grid |
T | type of object the grid store |
#include <Encap.hpp>
Public Types | |
typedef T::type | type |
Original list if types. | |
typedef int | yes_i_am_encap |
indicate it is an encapsulated object | |
typedef T | T_type |
original object type | |
Public Member Functions | |
encapc (typename memory_traits_inte< T >::type &data, size_t k) | |
constructor require a key and a memory data | |
template<unsigned int p> | |
type_gpu_prop< p, typename memory_traits_inte< T >::type > ::type::reference | get () |
Access the data. More... | |
template<unsigned int p> | |
type_gpu_prop< p, typename memory_traits_inte< T >::type > ::type::reference | get () const |
Access the data. More... | |
encapc< dim, T, Mem > & | operator= (const encapc< dim, T, Mem > &ec) |
Assignment. More... | |
encapc< dim, T, Mem > & | operator= (const T &obj) |
Assignment. More... | |
Private Types | |
typedef memory_traits_inte< T > ::type | Mem |
type of layout | |
Private Attributes | |
Mem & | data |
reference to the encapsulated object | |
size_t | k |
element id | |
|
inline |
|
inline |
|
inline |