|
C++ mpi module for stochmagnet_main Package
|
This class is a interface class to send / receive message with primitive type T from one to core to one core. More...
#include <MPI_CoreToCoreMessage.h>


Public Member Functions | |
| virtual tMemSize | getMemorySize () const override |
| return the memory size of the class | |
| virtual tMemSize | getContentsMemorySize () const override |
| return nthe memory size of the included associations More... | |
| virtual void | send (const MPI_Environment &env, const tMPICoreId &dstCore, const std::valarray< T > &data, const tMPITag &tag)=0 |
| sending a data with flag to dstCore More... | |
| virtual void | send (const MPI_Environment &env, const tMPICoreId &dstCore, const T *data, const tMPICount &nData, const tMPIType &dataType, const tMPITag &tag)=0 |
| blocking send a data with tag to dstCore More... | |
| virtual void | receive (const MPI_Environment &env, const tMPICoreId &srcCore, std::valarray< T > &data, const tMPITag &tag)=0 |
| receiving a data with flag to dstCore More... | |
| virtual void | receive (const MPI_Environment &env, const tMPICoreId &dstCore, T *buffer, const tMPICount &nData, const tMPIType &dataType, const tMPITag &tag)=0 |
| blocking send a data with tag to dstCore More... | |
| virtual void | sendNReceive (const MPI_Environment &env, const tMPICoreId &dstCore, const tMPICoreId &srcCore, const T &sentData, const tMPITag &sentTag, T &receivedData, const tMPITag &receivedTag)=0 |
| receiving a data with flag to dstCore More... | |
| virtual void | sendNReceive (const MPI_Environment &env, const tMPICoreId &dstCore, const tMPICoreId &srcCore, const std::valarray< T > &sentData, const tMPITag &sentTag, std::valarray< T > &receivedData, const tMPITag &receivedTag)=0 |
| receiving a data with flag to dstCore More... | |
| virtual void | sendNReceive (const MPI_Environment &env, const tMPICoreId &dstCore, const tMPICoreId &srcCore, const T *sentData, const tMPICount &nSentData, const tMPIType &sentDataType, const tMPITag &sentTag, T *receivedData, const tMPICount &nReceivedData, const tMPIType &receivedDataType, const tMPITag &receivedTag)=0 |
| receiving a data with flag to dstCore More... | |
| virtual void | exchange (const MPI_Environment &env, const tMPICoreId &srcCore, std::valarray< T > &data, const tMPITag &tag)=0 |
| receiving a data with flag to dstCore More... | |
| virtual void | getElementsNumber (tMPICount &nElements)=0 |
| get the number of element of the message More... | |
| virtual int | wait ()=0 |
| wait the end of the message communications | |
| virtual tBoolean | isFinished ()=0 |
| test if the message communication is finished | |
Public Member Functions inherited from CORE_Object | |
| template<class T > | |
| std::shared_ptr< T > | getSharedPointer () |
| return the shared pointer for this More... | |
| template<class T > | |
| std::shared_ptr< const T > | getConstSharedPointer () const |
| return a const shared pointer for this More... | |
| template<class T > | |
| tBoolean | isInstanceOf () const |
| test if the clas T is an instance of this class More... | |
| tString | getClassName () const |
| return the name of the class More... | |
| tString | getPointerString () const |
| retrun the pointer of the class as a string More... | |
| tString | getIdentityString () const |
| retrun the string identification of the class More... | |
| virtual tString | toString () const |
| return the string representation of the object node More... | |
Static Public Member Functions | |
| static tULLInt | WaitAllMessages (const std::vector< CORE_UniquePointer< MPI_CoreToCoreMessage< T >>> &messages) |
| wait for the end of communication of all messages More... | |
Static Public Member Functions inherited from CORE_Object | |
| static tBoolean | EnableMemoryStack (const tBoolean &isMemoryChecked) |
| enable the memory stack More... | |
| static void | EnableMemoryStack () |
| enable the memory stack | |
| static void | DisableMemoryStack () |
| disable the memory stack | |
| static tBoolean | IsMemoryStackEnabled () |
| return trur if the memory stack is enabled | |
| static tString | MemoryStackToString () |
| get the memory stack in string More... | |
| static tIndex | GetRegisteredClassesNumber () |
| get the memory stack in string More... | |
Protected Member Functions | |
| MPI_CoreToCoreMessage () | |
| create | |
| virtual | ~MPI_CoreToCoreMessage (void) |
| destroy | |
Protected Member Functions inherited from MPI_Object | |
| MPI_Object (void) | |
| create | |
| virtual | ~MPI_Object (void) |
| destroy | |
Protected Member Functions inherited from CORE_Object | |
| CORE_Object () | |
| build an instance of the object | |
| virtual | ~CORE_Object () |
| destroy the instance of object std | |
This class is a interface class to send / receive message with primitive type T from one to core to one core.
| T | : type of message to exchange |
|
pure virtual |
receiving a data with flag to dstCore
| [in] | env | environment of the destination Core |
| [in] | srcCore | id of the source core |
| [in] | data | data to receive |
| [in] | taf | tagof the data |
Implemented in MPI_CoreToCoreWMessage< T >, and MPI_CoreToCoreIMessage< T >.
|
inlineoverridevirtual |
return nthe memory size of the included associations
Reimplemented from CORE_Object.
Reimplemented in MPI_CoreToCoreWMessage< T >, and MPI_CoreToCoreIMessage< T >.
|
pure virtual |
get the number of element of the message
| [out] | nElements | : number of elemet of type T |
Implemented in MPI_CoreToCoreWMessage< T >, and MPI_CoreToCoreIMessage< T >.
|
pure virtual |
blocking send a data with tag to dstCore
| [in] | env | environment of the destination Core |
| [in] | dstCore | id of the destination core |
| [in] | buffer | adress of the buffet to receive data |
| [in] | nData | number of dataType to receive |
| [in] | dataType | data type |
| [in] | tag | tag of the data |
Implemented in MPI_CoreToCoreWMessage< T >, and MPI_CoreToCoreIMessage< T >.
|
pure virtual |
receiving a data with flag to dstCore
| [in] | env | environment of the destination Core |
| [in] | srcCore | id of the source core |
| [in] | data | data to receive |
| [in] | tag | tag of the data |
Implemented in MPI_CoreToCoreWMessage< T >, and MPI_CoreToCoreIMessage< T >.
|
pure virtual |
sending a data with flag to dstCore
| [in] | env | environment of the destination Core |
| [in] | dstCore | id of the destination core |
| [in] | data | data to send |
| [in] | tag | : tag of the sending message |
Implemented in MPI_CoreToCoreWMessage< T >, and MPI_CoreToCoreIMessage< T >.
|
pure virtual |
blocking send a data with tag to dstCore
| [in] | env | environment of the destination Core |
| [in] | dstCore | id of the destination core |
| [in] | buffer | : buffer of the data |
| [in] | nData | number of data of type dataType to send |
| [in] | tag | tag of the data |
Implemented in MPI_CoreToCoreWMessage< T >, and MPI_CoreToCoreIMessage< T >.
|
pure virtual |
receiving a data with flag to dstCore
| [in] | env | environment of the destination Core |
| [in] | dstCore | id of the dst Core of the sent data |
| [in] | srcCore | id of the src Core of the received data |
| [in] | sentData | data to sent |
| [in] | sentTag | tag of thesent message |
| [in] | receivedData | data to receive |
| [in] | receiveTag | tag of the received message |
Implemented in MPI_CoreToCoreWMessage< T >, and MPI_CoreToCoreIMessage< T >.
|
pure virtual |
receiving a data with flag to dstCore
| [in] | env | environment of the destination Core |
| [in] | dstCore | id of the dst Core of the sent data |
| [in] | srcCore | id of the src Core of the received data |
| [in] | sentData | data to sent |
| [in] | sentTag | tag of thesent message |
| [in] | receivedData | data to receive |
| [in] | receivedTag | tag of the received message |
Implemented in MPI_CoreToCoreWMessage< T >, and MPI_CoreToCoreIMessage< T >.
|
pure virtual |
receiving a data with flag to dstCore
| [in] | env | environment of the destination Core |
| [in] | dstCore | id of the dst core to the sent data from current core |
| [in] | srcCore | id of the src core from the received data to current core |
| [in] | sentData | data to sent |
| [in] | nSentData | number of data to sent |
| [in] | sentDataType | type of data to sent |
| [in] | sentTag | tag of thesent message |
| [in] | receivedData | data to receive |
| [in] | nReceivedData | number of data to receive |
| [in] | receivedDataType | type of data to receive |
| [in] | receivedTag | tag of the received message |
Implemented in MPI_CoreToCoreWMessage< T >, and MPI_CoreToCoreIMessage< T >.
|
inlinestatic |
wait for the end of communication of all messages
| [in] | messages | : list of messages |