OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
Point2D_test< T > Class Template Reference

Test structure used for several test. More...

Detailed Description

template<typename T>
class Point2D_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 OpenFPM data structure format for type parsing of see openFPM_data wiki for more information

Declaration of a point

Test structure used for several test.

Create a type definition

Access the members

p.get<P::v>()[0] = 1.0 + i;
p.get<P::v>()[1] = 2.0 + i;
p.get<P::v>()[2] = 7.0 + i;
p.get<P::t>()[0][0] = 10.0 + i;
p.get<P::t>()[0][1] = 13.0 + i;
p.get<P::t>()[0][2] = 8.0 + i;
p.get<P::t>()[1][0] = 19.0 + i;
p.get<P::t>()[1][1] = 23.0 + i;
p.get<P::t>()[1][2] = 5.0 + i;
p.get<P::t>()[2][0] = 4.0 + i;
p.get<P::t>()[2][1] = 3.0 + i;
p.get<P::t>()[2][2] = 11.0 + i;
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 35 of file Point_test.hpp.

#include <Point_test.hpp>

Public Types

typedef boost::fusion::vector< T, T, T, T, T[2], T[2][2]> type
 declaration of what the Point2D_test store
 
typedef boost::fusion::vector< T, T, T, T, T[2], T[2][2]> type_real
 declaration of what the Point2D_test store
 

Static Public Member Functions

static bool noPointers ()
 indicate that this structure has no pointers
 

Data Fields

type data
 object itself
 

Static Public Attributes

static constexpr bool stag_mask [] ={false,false,false,true,true,true}
 in case of usage with staggered grid it define which properties are staggered in the cell grid
 
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
 

Member Typedef Documentation

◆ type

template<typename T >
typedef boost::fusion::vector<T,T,T,T,T[2],T[2][2]> Point2D_test< T >::type

declaration of what the Point2D_test store

Definition at line 40 of file Point_test.hpp.

◆ type_real

template<typename T >
typedef boost::fusion::vector<T,T,T,T,T[2],T[2][2]> Point2D_test< T >::type_real

declaration of what the Point2D_test store

Definition at line 43 of file Point_test.hpp.

Member Function Documentation

◆ noPointers()

template<typename T >
static bool Point2D_test< T >::noPointers ( )
inlinestatic

indicate that this structure has no pointers

Returns
true

Definition at line 80 of file Point_test.hpp.

Field Documentation

◆ data

template<typename T >
type Point2D_test< T >::data

object itself

Definition at line 49 of file Point_test.hpp.

◆ max_prop

template<typename T >
const unsigned int Point2D_test< T >::max_prop = 6
static

number of properties in the boost::fusion::vector

Definition at line 70 of file Point_test.hpp.

◆ max_prop_real

template<typename T >
const unsigned int Point2D_test< T >::max_prop_real = 6
static

number of properties in the boost::fusion::vector

Definition at line 73 of file Point_test.hpp.

◆ s

template<typename T >
const unsigned int Point2D_test< T >::s = 3
static

s property is at position 3 in the boost::fusion::vector

Definition at line 61 of file Point_test.hpp.

◆ stag_mask

template<typename T >
constexpr bool Point2D_test< T >::stag_mask[] ={false,false,false,true,true,true}
staticconstexpr

in case of usage with staggered grid it define which properties are staggered in the cell grid

Definition at line 46 of file Point_test.hpp.

◆ t

template<typename T >
const unsigned int Point2D_test< T >::t = 5
static

t property is at position 5 in the boost::fusion::vector

Definition at line 67 of file Point_test.hpp.

◆ v

template<typename T >
const unsigned int Point2D_test< T >::v = 4
static

v property is at position 4 in the boost::fusion::vector

Definition at line 64 of file Point_test.hpp.

◆ x

template<typename T >
const unsigned int Point2D_test< T >::x = 0
static

x property is at position 0 in the boost::fusion::vector

Definition at line 52 of file Point_test.hpp.

◆ y

template<typename T >
const unsigned int Point2D_test< T >::y = 1
static

y property is at position 1 in the boost::fusion::vector

Definition at line 55 of file Point_test.hpp.

◆ z

template<typename T >
const unsigned int Point2D_test< T >::z = 2
static

z property is at position 2 in the boost::fusion::vector

Definition at line 58 of file Point_test.hpp.


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