template<unsigned int dim, typename T>
class encapc< dim, T, typename memory_traits_lin< 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 438 of file Encap.hpp.
|
__device__ __host__ | encapc (type &data_c) |
| constructor from a reference object
|
|
type * | operator & () |
| Return the address of the base. More...
|
|
template<unsigned int p, typename r_type = decltype(boost::fusion::at_c<p>(data_c))> |
__device__ __host__ r_type | get () |
| access the data More...
|
|
template<unsigned int p, typename r_type = decltype(boost::fusion::at_c<p>(data_c))> |
__device__ __host__ const r_type | get () const |
| access the data but return a constant reference More...
|
|
template<unsigned int p> |
__device__ __host__ void | set (decltype(boost::fusion::at_c< p >(data_c)) &ele) |
| Set one property of the encapsulated object. More...
|
|
template<unsigned int dim2> |
__device__ __host__ encapc< dim, T, Mem > & | set (const encapc< dim2, T, Mem > &ec) |
| Set one property of the encapsulated object. More...
|
|
__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...
|
|
bool | operator== (const encapc< dim, T, Mem > &ec) const |
| Compare. More...
|
|
bool | operator!= (const encapc< dim, T, Mem > &ec) const |
| Compare. More...
|
|