Test structure used for several test.
More...
template<typename T>
class Point_test< T >
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
Declaration of a point
Test structure used for several test.
Create a type definition
Access the members
auto get() -> decltype(boost::fusion::at_c< i >(data))
getter method for a general property i
static const unsigned int v
v property is at position 4 in the boost::fusion::vector
static const unsigned int t
t property is at position 5 in the boost::fusion::vector
Definition at line 105 of file Point_test.hpp.
#include <Point_test.hpp>
|
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
|
|
|
void | setx (T x_) |
| set the x property
|
|
void | sety (T y_) |
| set the y property
|
|
void | setz (T z_) |
| set the z property
|
|
void | sets (T s_) |
| set the s property
|
|
void | setv (size_t i, T v_) |
| set the v property
|
|
void | sett (size_t i, size_t j, T t_) |
| set the t property
|
|
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
|
|
Point_test< float > & | operator+= (const Point_test< float > &p) |
| Sum the point.
|
|
template<unsigned int dim, typename Mem > |
| Point_test (const encapc< dim, Point_test< T >, Mem > &p) |
| Copy constructor from encapc (encapsulated point)
|
|
| Point_test (const Point_test< T > &p) |
| constructor from another point
|
|
__device__ __host__ Point_test< T > & | operator= (const Point_test< T > &p) |
| Copy the point.
|
|
void | fill () |
| fill
|
|
|
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
|
|
◆ type
template<typename T >
typedef boost::fusion::vector<T,T,T,T,T[3],T[3][3]> Point_test< T >::type |
◆ type_real
template<typename T >
typedef boost::fusion::vector<T,T,T,T,T[3],T[3][3]> Point_test< T >::type_real |
◆ Point_test() [1/3]
◆ Point_test() [2/3]
template<typename T >
template<unsigned int dim, typename Mem >
Copy constructor from encapc (encapsulated point)
- Parameters
-
Definition at line 288 of file Point_test.hpp.
◆ Point_test() [3/3]
constructor from another point
- Parameters
-
Definition at line 312 of file Point_test.hpp.
◆ fill()
◆ get() [1/2]
template<typename T >
template<unsigned int i>
auto Point_test< T >::get |
( |
| ) |
-> decltype(boost::fusion::at_c<i>(data))
|
|
inline |
getter method for a general property i
Definition at line 219 of file Point_test.hpp.
◆ get() [2/2]
template<typename T >
template<unsigned int i>
auto Point_test< T >::get |
( |
| ) |
const -> decltype(boost::fusion::at_c<i>(data))
|
|
inline |
getter method for a general property i
Definition at line 224 of file Point_test.hpp.
◆ noPointers()
noPointers function
It notify that Point_test does not have any pointer and is safe to send
- Returns
- true
Definition at line 366 of file Point_test.hpp.
◆ operator+=()
◆ operator=()
Copy the point.
- Parameters
-
- Returns
- this
Definition at line 338 of file Point_test.hpp.
◆ operator==()
◆ sets()
◆ sett()
template<typename T >
void Point_test< T >::sett |
( |
size_t |
i, |
|
|
size_t |
j, |
|
|
T |
t_ |
|
) |
| |
|
inline |
set the t property
- Parameters
-
i | component to set |
j | component to set |
t_ | value |
Definition at line 214 of file Point_test.hpp.
◆ setv()
set the v property
- Parameters
-
i | component to set |
v_ | value |
Definition at line 205 of file Point_test.hpp.
◆ setx()
◆ sety()
◆ setz()
◆ data
◆ max_prop
number of properties in the boost::fusion::vector
Definition at line 162 of file Point_test.hpp.
◆ max_prop_real
template<typename T >
const unsigned int Point_test< T >::max_prop_real = 6 |
|
static |
number of properties in the boost::fusion::vector
Definition at line 165 of file Point_test.hpp.
s property is at position 3 in the boost::fusion::vector
Definition at line 143 of file Point_test.hpp.
◆ stag_mask
template<typename T >
constexpr bool Point_test< T >::stag_mask[] ={false,false,false,true,true,true} |
|
staticconstexpr |
in case usage with a staggered grid indicate which properties are staggered in the cell
Definition at line 128 of file Point_test.hpp.
t property is at position 5 in the boost::fusion::vector
Definition at line 149 of file Point_test.hpp.
v property is at position 4 in the boost::fusion::vector
Definition at line 146 of file Point_test.hpp.
x property is at position 0 in the boost::fusion::vector
Definition at line 134 of file Point_test.hpp.
y property is at position 1 in the boost::fusion::vector
Definition at line 137 of file Point_test.hpp.
z property is at position 2 in the boost::fusion::vector
Definition at line 140 of file Point_test.hpp.
The documentation for this class was generated from the following file: