OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
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;
};
{
};

Usage on the defined structures

Definition at line 42 of file common.hpp.

#include <common.hpp>

Static Public Member Functions

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

Member Function Documentation

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 52 of file common.hpp.


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