OpenFPM  5.2.0
Project that contain the implementation of distributed structures
is_grid_staggered< T, has_gt > Struct Template Reference

is_grid_staggered analyse T if it has a property grid_type defined and indicate that the grid is staggered More...

#include <common.hpp>

Static Public Member Functions

static bool value ()
 Return true if the grid is staggered. More...
 

Detailed Description

template<typename T, bool has_gt = has_grid_type<T>::type::value>
struct is_grid_staggered< T, has_gt >

is_grid_staggered analyse T if it has a property grid_type defined and indicate that the grid is staggered

This struct define a method value that return true if the grid is staggered, false otherwise

Define structures with information inside

{
static const int grid_type = STAGGERED_GRID;
};
{
static const int grid_type = NORMAL_GRID;
};
{
};

Usage on the defined structures

Definition at line 44 of file common.hpp.

Member Function Documentation

◆ value()

template<typename T , bool has_gt = has_grid_type<T>::type::value>
static bool is_grid_staggered< T, has_gt >::value ( )
inlinestatic

Return true if the grid is staggered.

If T define a staggered grid return true, if define a NORMAL grid or does not define any grid type return false

Returns
true in case the grid type is staggered

Definition at line 54 of file common.hpp.


The documentation for this struct was generated from the following file:
is_grid_staggered
is_grid_staggered analyse T if it has a property grid_type defined and indicate that the grid is stag...
Definition: common.hpp:44
test_grid_type_normal
Definition: common_test.hpp:20
test_grid_type_no_def
Definition: common_test.hpp:25
test_grid_type_staggered
[Define structures]
Definition: common_test.hpp:15
grid_dist_id
This is a distributed grid.
Definition: grid_dist_id.hpp:278