OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
Point_test_prp< T > Class Template Reference

Test structure used for several test. More...

Detailed Description

template<typename T>
class Point_test_prp< 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] + the definition of properties names

It is the format for type parsing of in the openfpm structures see openFPM_data wiki for more information

Declaration of a point

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;

Definition at line 407 of file Point_test.hpp.

#include <Point_test.hpp>

Data Structures

struct  attributes
 Attributes name. More...
 

Public Types

typedef boost::fusion::vector
< T, T, T, T, T[3], T[3][3]> 
type
 declaration of what the Point_test_prp 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...
 
template<unsigned int i>
boost::fusion::result_of::at
< type, boost::mpl::int_< i >
>::type 
get ()
 getter method for a general property i
 
 Point_test_prp ()
 Default constructor.
 
template<typename Mem >
 Point_test_prp (const encapc< 1, Point_test_prp< T >, Mem > &p)
 constructor from encapc
 
 Point_test_prp (const Point_test_prp< T > &p)
 constructor from another point
 
Point_test_prp< T > operator= (const Point_test< T > &p)
 Copy the point. More...
 

Static Public Member Functions

static bool noPointers ()
 

Data Fields

type data
 Object itself.
 

Static Public Attributes

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
 maximum number of properties
 

Member Function Documentation

template<typename T>
Point_test_prp<T> Point_test_prp< T >::operator= ( const Point_test< T > &  p)
inline

Copy the point.

Parameters
ppoint
Returns
this

Definition at line 530 of file Point_test.hpp.

template<typename T>
void Point_test_prp< T >::sets ( s_)
inline

set the s property

Parameters
s_

Definition at line 466 of file Point_test.hpp.

template<typename T>
void Point_test_prp< T >::setx ( x_)
inline

set the x property

Parameters
x_

Definition at line 445 of file Point_test.hpp.

template<typename T>
void Point_test_prp< T >::sety ( y_)
inline

set the y property

Parameters
y_

Definition at line 452 of file Point_test.hpp.

template<typename T>
void Point_test_prp< T >::setz ( z_)
inline

set the z property

Parameters
z_

Definition at line 459 of file Point_test.hpp.


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