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
grid_key_dx_r Class Reference

Emulate grid_key_dx with runtime dimensionality. More...

Detailed Description

Emulate grid_key_dx with runtime dimensionality.

Emulate grid_key_dx with runtime dimensionality

Definition at line 732 of file grid_sm.hpp.

#include <grid_sm.hpp>

Public Member Functions

size_t getDim ()
 Get the dimensionality of the key. More...
 
 grid_key_dx_r (grid_key_dx_r &key)
 constructor from another key More...
 
 grid_key_dx_r (size_t dim)
 constructor More...
 
template<typename a , typename... T>
void set (a v, T...t)
 set the grid key from a list of numbers
 
mem_id get (size_t i)
 get the i index More...
 
void set_d (size_t i, mem_id id)
 Set the i index. More...
 

Data Fields

mem_id * k
 structure that store all the index
 

Private Member Functions

template<typename a , typename... T>
void invert_assign (a v, T...t)
 Recursively invert the assignment. More...
 
template<typename a , typename... T>
void invert_assign (a v)
 
void invert_assign ()
 

Private Attributes

size_t dim
 

Constructor & Destructor Documentation

grid_key_dx_r::grid_key_dx_r ( grid_key_dx_r key)
inline

constructor from another key

Parameters
key

Definition at line 754 of file grid_sm.hpp.

grid_key_dx_r::grid_key_dx_r ( size_t  dim)
inline

constructor

constructor

Parameters
dimDimensionality

Definition at line 774 of file grid_sm.hpp.

Member Function Documentation

mem_id grid_key_dx_r::get ( size_t  i)
inline

get the i index

Get the i index

Parameters
iindex to get
Returns
the index value

Definition at line 802 of file grid_sm.hpp.

size_t grid_key_dx_r::getDim ( )
inline

Get the dimensionality of the key.

Get the dimensionality of the key

Definition at line 744 of file grid_sm.hpp.

template<typename a , typename... T>
void grid_key_dx_r::invert_assign ( v,
T...  t 
)
inlineprivate

Recursively invert the assignment.

Recursively invert the assignment at compile-time

Definition at line 830 of file grid_sm.hpp.

void grid_key_dx_r::set_d ( size_t  i,
mem_id  id 
)
inline

Set the i index.

Set the i index

Parameters
iindex to set
idvalue to set

Definition at line 815 of file grid_sm.hpp.


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