Test structure used for several test. More...
Test structure used for several test.
It is a test structure used for several test it contain 4 scalar "x,y,z,s" one vector property v[3] and one tensor or rank 2 t[3][3]
It is the format for type parsing of in the openfpm structures see openFPM_data wiki for more information
Definition at line 105 of file Point_test.hpp.
#include <Point_test.hpp>
Public Types | |
typedef boost::fusion::vector< T, T, T, T, T[3], T[3][3]> | type |
declaration of what the Point_test store | |
typedef boost::fusion::vector< T, T, T, T, T[3], T[3][3]> | type_real |
declaration of what the Point_test store | |
Public Member Functions | |
void | setx (T x_) |
set the x property More... | |
void | sety (T y_) |
set the y property More... | |
void | setz (T z_) |
set the z property More... | |
void | sets (T s_) |
set the s property More... | |
void | setv (size_t i, T v_) |
set the v property More... | |
void | sett (size_t i, size_t j, T t_) |
set the t property More... | |
template<unsigned int i> | |
auto | get () -> decltype(boost::fusion::at_c< i >(data)) |
getter method for a general property i | |
template<unsigned int i> | |
auto | get () const -> decltype(boost::fusion::at_c< i >(data)) |
getter method for a general property i | |
Point_test () | |
Default constructor. | |
bool | operator== (const Point_test< float > &p) const |
check if two point match More... | |
Point_test< float > & | operator+= (const Point_test< float > &p) |
Sum the point. More... | |
template<unsigned int dim, typename Mem > | |
Point_test (const encapc< dim, Point_test< T >, Mem > &p) | |
Copy constructor from encapc (encapsulated point) More... | |
Point_test (const Point_test< T > &p) | |
constructor from another point More... | |
__device__ __host__ Point_test< T > & | operator= (const Point_test< T > &p) |
Copy the point. More... | |
void | fill () |
fill More... | |
Static Public Member Functions | |
static bool | noPointers () |
noPointers function More... | |
Data Fields | |
type | data |
The object itself. | |
Static Public Attributes | |
static constexpr bool | stag_mask [] ={false,false,false,true,true,true} |
in case usage with a staggered grid indicate which properties are staggered in the cell | |
static const unsigned int | x = 0 |
x property is at position 0 in the boost::fusion::vector | |
static const unsigned int | y = 1 |
y property is at position 1 in the boost::fusion::vector | |
static const unsigned int | z = 2 |
z property is at position 2 in the boost::fusion::vector | |
static const unsigned int | s = 3 |
s property is at position 3 in the boost::fusion::vector | |
static const unsigned int | v = 4 |
v property is at position 4 in the boost::fusion::vector | |
static const unsigned int | t = 5 |
t property is at position 5 in the boost::fusion::vector | |
static const unsigned int | max_prop = 6 |
number of properties in the boost::fusion::vector | |
static const unsigned int | max_prop_real = 6 |
number of properties in the boost::fusion::vector | |
|
inline |
Copy constructor from encapc (encapsulated point)
p | ecapsulated point |
Definition at line 288 of file Point_test.hpp.
|
inline |
constructor from another point
p | point to copy |
Definition at line 312 of file Point_test.hpp.
|
inline |
|
inlinestatic |
noPointers function
It notify that Point_test does not have any pointer and is safe to send
Definition at line 366 of file Point_test.hpp.
|
inline |
|
inline |
|
inline |
check if two point match
p | point to compare |
Definition at line 236 of file Point_test.hpp.
|
inline |
|
inline |
set the t property
i | component to set |
j | component to set |
t_ | value |
Definition at line 214 of file Point_test.hpp.
|
inline |
set the v property
i | component to set |
v_ | value |
Definition at line 205 of file Point_test.hpp.
|
inline |
|
inline |
|
inline |