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

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;
};
{
};
This is a distributed grid.
[Define structures]

Usage on the defined structures

is_grid_staggered analyse T if it has a property grid_type defined and indicate that the grid is stag...
Definition common.hpp:45

Definition at line 44 of file common.hpp.

#include <common.hpp>

Static Public Member Functions

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

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: