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

point test with only scalar properties More...

Detailed Description

template<typename T>
class Point_test_scal< T >

point test with only scalar properties

Definition at line 567 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 > type
 declaration of what the Point_test_scal store
 

Public Member Functions

void setx (T x_)
 set the property x
 
void sety (T y_)
 set the property y
 
void setz (T z_)
 set the property z
 
void sets (T s_)
 set the property s
 
template<unsigned int i>
boost::fusion::result_of::at< type, boost::mpl::int_< i > >::type get ()
 getter method for the property i
 
 Point_test_scal ()
 Default constructor.
 
template<typename Mem >
 Point_test_scal (const encapc< 1, Point_test_scal< T >, Mem > &p)
 constructor from encapc
 
 Point_test_scal (const Point_test_scal< T > &p)
 constructor from another point
 
Point_test_scal< T > operator= (const Point_test_scal< T > &p)
 operator=
 

Static Public Member Functions

static bool noPointers ()
 

Data Fields

type data
 The data 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 0 in the boost::fusion::vector
 
static const unsigned int s = 3
 s property is at position 0 in the boost::fusion::vector
 
static const unsigned int max_prop = 4
 the number of properties
 

Member Typedef Documentation

◆ type

template<typename T >
typedef boost::fusion::vector<T,T,T,T> Point_test_scal< T >::type

declaration of what the Point_test_scal store

Definition at line 572 of file Point_test.hpp.

Constructor & Destructor Documentation

◆ Point_test_scal() [1/3]

template<typename T >
Point_test_scal< T >::Point_test_scal ( )
inline

Default constructor.

Definition at line 614 of file Point_test.hpp.

◆ Point_test_scal() [2/3]

template<typename T >
template<typename Mem >
Point_test_scal< T >::Point_test_scal ( const encapc< 1, Point_test_scal< T >, Mem > &  p)
inline

constructor from encapc

Definition at line 618 of file Point_test.hpp.

◆ Point_test_scal() [3/3]

template<typename T >
Point_test_scal< T >::Point_test_scal ( const Point_test_scal< T > &  p)
inline

constructor from another point

Definition at line 627 of file Point_test.hpp.

Member Function Documentation

◆ get()

template<typename T >
template<unsigned int i>
boost::fusion::result_of::at< type, boost::mpl::int_< i > >::type Point_test_scal< T >::get ( )
inline

getter method for the property i

Definition at line 611 of file Point_test.hpp.

◆ noPointers()

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

Definition at line 646 of file Point_test.hpp.

◆ operator=()

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

operator=

Definition at line 636 of file Point_test.hpp.

◆ sets()

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

set the property s

Definition at line 601 of file Point_test.hpp.

◆ setx()

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

set the property x

Definition at line 595 of file Point_test.hpp.

◆ sety()

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

set the property y

Definition at line 597 of file Point_test.hpp.

◆ setz()

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

set the property z

Definition at line 599 of file Point_test.hpp.

Field Documentation

◆ data

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

The data itself.

Definition at line 575 of file Point_test.hpp.

◆ max_prop

template<typename T >
const unsigned int Point_test_scal< T >::max_prop = 4
static

the number of properties

Definition at line 590 of file Point_test.hpp.

◆ s

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

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

Definition at line 587 of file Point_test.hpp.

◆ x

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

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

Definition at line 578 of file Point_test.hpp.

◆ y

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

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

Definition at line 581 of file Point_test.hpp.

◆ z

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

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

Definition at line 584 of file Point_test.hpp.


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