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

Detailed Description

template<unsigned int dim, typename T>
struct N_box< dim, T >

Definition at line 162 of file common.hpp.

Public Member Functions

 N_box ()
 Default constructor.
 
 N_box (const N_box< dim, T > &b)
 Copy constructor.
 
 N_box (N_box< dim, T > &&b)
 Copy constructor.
 
N_box< dim, T > & operator= (const N_box< dim, T > &ele)
 Copy the element. More...
 
N_box< dim, T > & operator= (N_box< dim, T > &&ele)
 Copy the element. More...
 
bool operator== (const N_box< dim, T > &ele) const
 Compare two N_box object. More...
 
bool operator!= (const N_box< dim, T > &ele) const
 Compare two N_box object. More...
 

Data Fields

size_t id
 id of the processor in the nn_processor list (local processor id)
 
openfpm::vector<::Box< dim, T > > bx
 near processor sub-domains
 
openfpm::vector< comb< dim > > pos
 near processor sector position (or where they live outside the domain)
 
size_t n_real_sub
 Number of real sub-domains or sub-domain in the central sector.
 
openfpm::vector< size_t > r_sub
 

Member Function Documentation

template<unsigned int dim, typename T>
bool N_box< dim, T >::operator!= ( const N_box< dim, T > &  ele) const
inline

Compare two N_box object.

Parameters
eleelement to compare with
Returns
true if they match

Definition at line 267 of file common.hpp.

template<unsigned int dim, typename T>
N_box<dim,T>& N_box< dim, T >::operator= ( const N_box< dim, T > &  ele)
inline

Copy the element.

Parameters
eleelement to copy
Returns
itself

Definition at line 207 of file common.hpp.

template<unsigned int dim, typename T>
N_box<dim,T>& N_box< dim, T >::operator= ( N_box< dim, T > &&  ele)
inline

Copy the element.

Parameters
eleelement to copy
Returns
itself

Definition at line 225 of file common.hpp.

template<unsigned int dim, typename T>
bool N_box< dim, T >::operator== ( const N_box< dim, T > &  ele) const
inline

Compare two N_box object.

Parameters
eleelement to compare with
Returns
true if they match

Definition at line 243 of file common.hpp.

Field Documentation

template<unsigned int dim, typename T>
openfpm::vector<size_t> N_box< dim, T >::r_sub

When a sub-domain is not in the central sector, it mean that has been created because of periodicity in a non central sector. Any sub-domain not in the central sector is linked to one sub-domain in the central sector

Definition at line 179 of file common.hpp.


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