OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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 958 of file grid_sm.hpp.

#include <grid_sm.hpp>

Public Member Functions

size_t getDim ()
 Get the dimensionality of the key.
 
 grid_key_dx_r (grid_key_dx_r &key)
 constructor from another key
 
 grid_key_dx_r (size_t dim)
 constructor
 
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
 
void set_d (size_t i, mem_id id)
 Set the i index.
 

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.
 
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() [1/2]

grid_key_dx_r::grid_key_dx_r ( grid_key_dx_r key)
inline

constructor from another key

Parameters
key

Definition at line 980 of file grid_sm.hpp.

◆ grid_key_dx_r() [2/2]

grid_key_dx_r::grid_key_dx_r ( size_t  dim)
inline

constructor

constructor

Parameters
dimDimensionality

Definition at line 1000 of file grid_sm.hpp.

◆ ~grid_key_dx_r()

grid_key_dx_r::~grid_key_dx_r ( )
inline

Definition at line 1007 of file grid_sm.hpp.

Member Function Documentation

◆ get()

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 1028 of file grid_sm.hpp.

◆ getDim()

size_t grid_key_dx_r::getDim ( )
inline

Get the dimensionality of the key.

Get the dimensionality of the key

Definition at line 970 of file grid_sm.hpp.

◆ invert_assign() [1/3]

void grid_key_dx_r::invert_assign ( )
inlineprivate

Definition at line 1067 of file grid_sm.hpp.

◆ invert_assign() [2/3]

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

Definition at line 1062 of file grid_sm.hpp.

◆ invert_assign() [3/3]

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 1056 of file grid_sm.hpp.

◆ set()

template<typename a , typename ... T>
void grid_key_dx_r::set ( v,
T...  t 
)
inline

set the grid key from a list of numbers

Definition at line 1013 of file grid_sm.hpp.

◆ set_d()

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 1041 of file grid_sm.hpp.

Field Documentation

◆ dim

size_t grid_key_dx_r::dim
private

Definition at line 960 of file grid_sm.hpp.

◆ k

mem_id* grid_key_dx_r::k

structure that store all the index

Definition at line 1047 of file grid_sm.hpp.


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