... | ... | @@ -32,31 +32,3 @@ Specializations are allowed to be mapped or use internally STL, Boost, OpenFPM_d |
|
|
### [Iterators](Iterators)
|
|
|
### [Template](Template order)
|
|
|
|
|
|
### Template parameter oder
|
|
|
|
|
|
Template parameters must follow an order, first come the specific template parameters, than the basic object the structure is storing in the following order, memory pool, ordering, implementation
|
|
|
|
|
|
Example
|
|
|
|
|
|
```cpp
|
|
|
|
|
|
/*!
|
|
|
*
|
|
|
* \brief This is an N-dimensional grid or an N-dimensional array working on CPU
|
|
|
*
|
|
|
* This is an N-Dimensional grid or an N-dimensional array working on CPU
|
|
|
*
|
|
|
* \param dim Dimensionality of the grid
|
|
|
* \param T type of object the grid store
|
|
|
* \param Mem interface used to allocate memory
|
|
|
*
|
|
|
*/
|
|
|
|
|
|
template<unsigned int dim, typename T, typename Mem = typename memory_traits_lin< typename T::type >::type >
|
|
|
class grid_cpu
|
|
|
{
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
The following is the class signature for multi array, first come the class specific parameters, in this case the dimensionality of the grid, than come the Generic object that store than the Memory pool and implementation detail (Ordering is not present, but is going to change) |
|
|
\ No newline at end of file |