PhyStar  v0.0.0 thu24
gsmpi::Point< N_dim > Struct Template Reference

point struct to store node data More...

#include <gsmpicartzone.hpp>

Public Member Functions

 Point ()
 default Construct a new Point object More...
 
 Point (double p[])
 Construct a new Point object by a position. More...
 
 Point (std::vector< double > pv)
 Construct a new Point object by a position. More...
 
void SetPos (double p[])
 Set the Point's position. More...
 
void SetPos (std::vector< double > pv)
 Set the Poiont's position. More...
 
void SetPos (const Point &p)
 Set the Poiont's position. More...
 

Public Attributes

double pos [N_dim]
 

Detailed Description

template<int N_dim>
struct gsmpi::Point< N_dim >

point struct to store node data

Template Parameters
N_dimdimension up to 3

Constructor & Destructor Documentation

◆ Point() [1/3]

template<int N_dim>
gsmpi::Point< N_dim >::Point ( )
inline

default Construct a new Point object

◆ Point() [2/3]

template<int N_dim>
gsmpi::Point< N_dim >::Point ( double  p[])
inline

Construct a new Point object by a position.

Parameters
parray of position

References gsmpi::Point< N_dim >::SetPos().

Here is the call graph for this function:

◆ Point() [3/3]

template<int N_dim>
gsmpi::Point< N_dim >::Point ( std::vector< double >  pv)
inline

Construct a new Point object by a position.

Parameters
parray of position (vector class)

References gsmpi::Point< N_dim >::SetPos().

Here is the call graph for this function:

Member Function Documentation

◆ SetPos() [1/3]

template<int N_dim>
void gsmpi::Point< N_dim >::SetPos ( const Point< N_dim > &  p)
inline

Set the Poiont's position.

Parameters
pposition ( point class)

References gsmpi::Point< N_dim >::pos.

◆ SetPos() [2/3]

template<int N_dim>
void gsmpi::Point< N_dim >::SetPos ( double  p[])
inline

Set the Point's position.

Parameters
pposition (array)

References gsmpi::Point< N_dim >::pos.

Here is the caller graph for this function:

◆ SetPos() [3/3]

template<int N_dim>
void gsmpi::Point< N_dim >::SetPos ( std::vector< double >  pv)
inline

Set the Poiont's position.

Parameters
pvposition (vector class)

References gsmpi::Point< N_dim >::pos.

Member Data Documentation

◆ pos

template<int N_dim>
double gsmpi::Point< N_dim >::pos[N_dim]

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