OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
stub_or_real< T, dims, stype, decomposition, stub > Struct Template Reference

In case of testing return a stub grid. More...

Detailed Description

template<typename T, unsigned int dims, typename stype, typename decomposition, bool stub = is_testing<T>::value>
struct stub_or_real< T, dims, stype, decomposition, stub >

In case of testing return a stub grid.

Example

struct on_test
{
typedef void testing;
};
{
};
Not on testing mode.
[Constant fields struct definition]
BOOST_REQUIRE_EQUAL(ret,true);
BOOST_REQUIRE_EQUAL(ret,false);

return true if T::attributes::name[0] is a valid expression and produce a defined type

Definition at line 83 of file util_num.hpp.

#include <util_num.hpp>

Public Types

typedef grid_dist_testing< dims > type
 switch type if we are on testing or not
 

Member Typedef Documentation

◆ type

template<typename T , unsigned int dims, typename stype , typename decomposition , bool stub = is_testing<T>::value>
typedef grid_dist_testing<dims> stub_or_real< T, dims, stype, decomposition, stub >::type

switch type if we are on testing or not

Definition at line 86 of file util_num.hpp.


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