OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
to_memory_multi_array_ref_view< T > Struct Template Reference

OpenFPM use memory_c<multi_array<T> ..... > to implement the structure of array layout. More...

Detailed Description

template<typename T>
struct to_memory_multi_array_ref_view< T >

OpenFPM use memory_c<multi_array<T> ..... > to implement the structure of array layout.

This mean that the object returned by mem_r are complex objects that represent the memory view, these view has the purpose to hook at compile time the operator[] to give the feeling of using an array

This view depend from the template parameter Tv in the member mem_r, that as you can see is difficult to reconstruct In some case deduction does not work because too complex. So we have to compute this type. this function does this given a type like float[3], it produce the Tv parameter

Definition at line 588 of file memory_c.hpp.

#include <memory_c.hpp>

Public Types

typedef array_to_vmpl< T >::prim_vmpl prim_vmpl
 
typedef boost::mpl::push_front< typenameboost::mpl::pop_front< prim_vmpl >::type, boost::mpl::int_<-1 > >::type vmpl
 Remove the first element (this is the Tv parameter of )
 

Member Typedef Documentation

◆ prim_vmpl

template<typename T >
typedef array_to_vmpl<T>::prim_vmpl to_memory_multi_array_ref_view< T >::prim_vmpl

Definition at line 591 of file memory_c.hpp.

◆ vmpl

template<typename T >
typedef boost::mpl::push_front<typenameboost::mpl::pop_front<prim_vmpl>::type,boost::mpl::int_<-1>>::type to_memory_multi_array_ref_view< T >::vmpl

Remove the first element (this is the Tv parameter of )

Definition at line 595 of file memory_c.hpp.


The documentation for this struct was generated from the following file: