OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
N_box< dim, T > Struct Template Reference

Detailed Description

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

Definition at line 186 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.
 
N_box< dim, T > & operator= (N_box< dim, T > &&ele)
 Copy the element.
 
bool operator== (const N_box< dim, T > &ele) const
 Compare two N_box object.
 
bool operator!= (const N_box< dim, T > &ele) const
 Compare two N_box object.
 

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
 

Constructor & Destructor Documentation

◆ N_box() [1/3]

template<unsigned int dim, typename T >
N_box< dim, T >::N_box ( )
inline

Default constructor.

Definition at line 206 of file common.hpp.

◆ N_box() [2/3]

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

Copy constructor.

Definition at line 211 of file common.hpp.

◆ N_box() [3/3]

template<unsigned int dim, typename T >
N_box< dim, T >::N_box ( N_box< dim, T > &&  b)
inline

Copy constructor.

Definition at line 218 of file common.hpp.

Member Function Documentation

◆ operator!=()

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 291 of file common.hpp.

◆ operator=() [1/2]

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 231 of file common.hpp.

◆ operator=() [2/2]

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 249 of file common.hpp.

◆ operator==()

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.

Field Documentation

◆ bx

template<unsigned int dim, typename T >
openfpm::vector<::Box<dim,T> > N_box< dim, T >::bx

near processor sub-domains

Definition at line 192 of file common.hpp.

◆ id

template<unsigned int dim, typename T >
size_t N_box< dim, T >::id

id of the processor in the nn_processor list (local processor id)

Definition at line 189 of file common.hpp.

◆ n_real_sub

template<unsigned int dim, typename T >
size_t N_box< dim, T >::n_real_sub

Number of real sub-domains or sub-domain in the central sector.

Definition at line 198 of file common.hpp.

◆ pos

template<unsigned int dim, typename T >
openfpm::vector<comb<dim> > N_box< dim, T >::pos

near processor sector position (or where they live outside the domain)

Definition at line 195 of file common.hpp.

◆ r_sub

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 203 of file common.hpp.


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