OpenFPM  5.2.0
Project that contain the implementation of distributed structures
stub_or_real< T, dims, stype, decomposition, stub > Struct Template Reference

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

#include <util_num.hpp>

Public Types

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

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;
};
{
};
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.


The documentation for this struct was generated from the following file:
is_testing
Definition: util_num.hpp:54
on_test
[Constant fields struct definition]
Definition: util_num_unit_tests.hpp:48
not_on_test
Not on testing mode.
Definition: util_num_unit_tests.hpp:55