PhyStar  v0.0.0 thu24
gsmpi::SendRecvModel< T > Struct Template Reference

#include <sendrecvmodel.hpp>

Inheritance diagram for gsmpi::SendRecvModel< T >:

Public Member Functions

 SendRecvModel ()
 Construct a new Sender object. More...
 
 SendRecvModel (const int num)
 Construct a new Sender object. More...
 
auto & Init (const int num)
 Init Send Recv object. More...
 
auto & InsertBufferInit ()
 
auto & InsertBuffer (const int i, const T &val)
 
auto & setNumBlocks (const int num)
 Set the Num of Blocks. More...
 
auto & setCounts (const int scounts[])
 Set the Counts from an existed array. More...
 
auto & UpdateLen ()
 update the length of buffer More...
 
auto & AllocateBuffer ()
 allocate the buffer More...
 
auto & PrepareDisp ()
 prepare for displacement for each receiving blocks More...
 
auto & PrintBuffer ()
 

Public Attributes

Array1< T > buffer
 
int num_of_blocks
 
int len
 
Array1i counts
 
Array1i disps
 
Array1i inds
 

Constructor & Destructor Documentation

◆ SendRecvModel() [1/2]

template<typename T >
gsmpi::SendRecvModel< T >::SendRecvModel ( )
inline

Construct a new Sender object.

◆ SendRecvModel() [2/2]

template<typename T >
gsmpi::SendRecvModel< T >::SendRecvModel ( const int  num)
inline

Construct a new Sender object.

Parameters
numthe number of receiving blocks

Member Function Documentation

◆ AllocateBuffer()

template<typename T >
auto& gsmpi::SendRecvModel< T >::AllocateBuffer ( )
inline

allocate the buffer

Returns
auto&

◆ Init()

template<typename T >
auto& gsmpi::SendRecvModel< T >::Init ( const int  num)
inline

Init Send Recv object.

Parameters
numthe number of receiving blocks
Here is the caller graph for this function:

◆ InsertBuffer()

template<typename T >
auto& gsmpi::SendRecvModel< T >::InsertBuffer ( const int  i,
const T &  val 
)
inline

◆ InsertBufferInit()

template<typename T >
auto& gsmpi::SendRecvModel< T >::InsertBufferInit ( )
inline

◆ PrepareDisp()

template<typename T >
auto& gsmpi::SendRecvModel< T >::PrepareDisp ( )
inline

prepare for displacement for each receiving blocks

Returns
auto&

◆ PrintBuffer()

template<typename T >
auto& gsmpi::SendRecvModel< T >::PrintBuffer ( )
inline
Here is the caller graph for this function:

◆ setCounts()

template<typename T >
auto& gsmpi::SendRecvModel< T >::setCounts ( const int  scounts[])
inline

Set the Counts from an existed array.

Parameters
scounts
Returns
auto&

◆ setNumBlocks()

template<typename T >
auto& gsmpi::SendRecvModel< T >::setNumBlocks ( const int  num)
inline

Set the Num of Blocks.

Parameters
num
Returns
auto&

◆ UpdateLen()

template<typename T >
auto& gsmpi::SendRecvModel< T >::UpdateLen ( )
inline

update the length of buffer

Returns
auto&
Here is the caller graph for this function:

Member Data Documentation

◆ buffer

template<typename T >
Array1<T> gsmpi::SendRecvModel< T >::buffer

◆ counts

template<typename T >
Array1i gsmpi::SendRecvModel< T >::counts

◆ disps

template<typename T >
Array1i gsmpi::SendRecvModel< T >::disps

◆ inds

template<typename T >
Array1i gsmpi::SendRecvModel< T >::inds

◆ len

template<typename T >
int gsmpi::SendRecvModel< T >::len

◆ num_of_blocks

template<typename T >
int gsmpi::SendRecvModel< T >::num_of_blocks

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