OpenFPM_data  0.1.0
Project that contain the implementation and interfaces for basic structure like vectors, grids, graph ... .
 All Data Structures Namespaces Functions Variables Typedefs Friends
memory_conf.hpp
1 /*
2  * memory_conf.hpp
3  *
4  * Created on: Aug 28, 2014
5  * Author: Pietro Incardona
6  */
7 
8 #ifndef MEMORY_CONF_HPP_
9 #define MEMORY_CONF_HPP_
10 
11 #include "util/variadic_to_vmpl.hpp"
12 #include "t_to_memory_c.hpp"
13 
31 template<typename Seq>
32 struct inter_memc
33 {
34  typedef typename v_transform<t_to_memory_c,Seq>::type type;
35 };
36 
51 template<typename T>
53 {
55  typedef typename inter_memc<T>::type type;
56 };
57 
70 template<typename T>
72 {
74  typedef memory_c<T> type;
75 };
76 
77 #endif
Transform the boost::fusion::vector into memory specification (memory_traits)
Definition: memory_conf.hpp:71
v_transform_impl< H, first, last, exit_::value >::type type
generate the boost::fusion::vector apply H on each term
memory_c< T > type
for each element in the vector interleave memory_c
Definition: memory_conf.hpp:74
Transform the boost::fusion::vector into memory specification (memory_traits)
Definition: memory_conf.hpp:52
This class convert a boost::mpl::fusion/vector to a boost::mpl::fusion/vector with memory_c interleav...
Definition: memory_conf.hpp:32
inter_memc< T >::type type
for each element in the vector interleave memory_c
Definition: memory_conf.hpp:55
This class is a container for the memory interface like HeapMemory CudaMemory.
Definition: memory_c.hpp:32