FEI Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
snl_fei::SubdMsgHandler Class Reference

#include <snl_fei_SubdMsgHandler.hpp>

Inheritance diagram for snl_fei::SubdMsgHandler:
Inheritance graph
[legend]

Public Member Functions

 SubdMsgHandler (RecordCollection *recordCollection, fei::SharedIDs< int > *sharedIDTable, fei::SharedIDs< int > *subdomainIDTable)
 
virtual ~SubdMsgHandler ()
 
std::vector< int > & getSendProcs ()
 
std::vector< int > & getRecvProcs ()
 
int getSendMessageLength (int destProc, int &messageLength)
 
int getSendMessage (int destProc, std::vector< int > &message)
 
int processRecvMessage (int srcProc, std::vector< int > &message)
 
void setSendPattern (fei::comm_map *pattern)
 
void setRecvPattern (fei::comm_map *pattern)
 
- Public Member Functions inherited from fei::MessageHandler< int >
virtual ~MessageHandler ()
 
virtual std::vector< int > & getSendProcs ()=0
 
virtual std::vector< int > & getRecvProcs ()=0
 
virtual int getSendMessageLength (int destProc, int &messageLength)=0
 
virtual int getSendMessage (int destProc, std::vector< int > &message)=0
 
virtual int processRecvMessage (int srcProc, std::vector< int > &message)=0
 

Private Attributes

fei::comm_mapsendPattern_
 
fei::comm_maprecvPattern_
 
RecordCollectionrecordCollection_
 
fei::SharedIDs< int > * sharedIDTable_
 
fei::SharedIDs< int > * subdomainIDTable_
 
std::vector< int > sendProcs_
 
std::vector< int > recvProcs_
 

Detailed Description

implementation of MessageHandler for subdomain data

Definition at line 24 of file snl_fei_SubdMsgHandler.hpp.

Constructor & Destructor Documentation

◆ SubdMsgHandler()

snl_fei::SubdMsgHandler::SubdMsgHandler ( RecordCollection recordCollection,
fei::SharedIDs< int > *  sharedIDTable,
fei::SharedIDs< int > *  subdomainIDTable 
)

constructor

Definition at line 20 of file snl_fei_SubdMsgHandler.cpp.

◆ ~SubdMsgHandler()

snl_fei::SubdMsgHandler::~SubdMsgHandler ( )
virtual

destructor

Definition at line 33 of file snl_fei_SubdMsgHandler.cpp.

Member Function Documentation

◆ getSendProcs()

std::vector< int > & snl_fei::SubdMsgHandler::getSendProcs ( )
virtual

get list of processors to be sent to

Implements fei::MessageHandler< int >.

Definition at line 37 of file snl_fei_SubdMsgHandler.cpp.

References fei::copyKeysToVector().

◆ getRecvProcs()

std::vector< int > & snl_fei::SubdMsgHandler::getRecvProcs ( )
virtual

get list of processors to be recvd from

Implements fei::MessageHandler< int >.

Definition at line 43 of file snl_fei_SubdMsgHandler.cpp.

References fei::copyKeysToVector().

◆ getSendMessageLength()

int snl_fei::SubdMsgHandler::getSendMessageLength ( int  destProc,
int &  messageLength 
)
virtual

get length of message to be sent to specified proc

Implements fei::MessageHandler< int >.

Definition at line 49 of file snl_fei_SubdMsgHandler.cpp.

References FEI_COUT, and FEI_ENDL.

◆ getSendMessage()

int snl_fei::SubdMsgHandler::getSendMessage ( int  destProc,
std::vector< int > &  message 
)
virtual

get message to be sent to specified proc

Implements fei::MessageHandler< int >.

Definition at line 63 of file snl_fei_SubdMsgHandler.cpp.

References ERReturn, and fei::Record< GlobalIDType >::isInLocalSubdomain_.

◆ processRecvMessage()

int snl_fei::SubdMsgHandler::processRecvMessage ( int  srcProc,
std::vector< int > &  message 
)
virtual

process message received from specified recv proc

Implements fei::MessageHandler< int >.

Definition at line 94 of file snl_fei_SubdMsgHandler.cpp.

References ERReturn.

◆ setSendPattern()

void snl_fei::SubdMsgHandler::setSendPattern ( fei::comm_map pattern)
inline

set pattern describing procs to be sent to

Definition at line 49 of file snl_fei_SubdMsgHandler.hpp.

References sendPattern_.

Referenced by fei::Lookup_Impl::buildDatabases().

◆ setRecvPattern()

void snl_fei::SubdMsgHandler::setRecvPattern ( fei::comm_map pattern)
inline

set pattern describing procs to be recvd from

Definition at line 53 of file snl_fei_SubdMsgHandler.hpp.

References recvPattern_.

Referenced by fei::Lookup_Impl::buildDatabases().

Member Data Documentation

◆ sendPattern_

fei::comm_map* snl_fei::SubdMsgHandler::sendPattern_
private

Definition at line 57 of file snl_fei_SubdMsgHandler.hpp.

Referenced by setSendPattern().

◆ recvPattern_

fei::comm_map* snl_fei::SubdMsgHandler::recvPattern_
private

Definition at line 58 of file snl_fei_SubdMsgHandler.hpp.

Referenced by setRecvPattern().

◆ recordCollection_

RecordCollection* snl_fei::SubdMsgHandler::recordCollection_
private

Definition at line 59 of file snl_fei_SubdMsgHandler.hpp.

◆ sharedIDTable_

fei::SharedIDs<int>* snl_fei::SubdMsgHandler::sharedIDTable_
private

Definition at line 60 of file snl_fei_SubdMsgHandler.hpp.

◆ subdomainIDTable_

fei::SharedIDs<int>* snl_fei::SubdMsgHandler::subdomainIDTable_
private

Definition at line 61 of file snl_fei_SubdMsgHandler.hpp.

◆ sendProcs_

std::vector<int> snl_fei::SubdMsgHandler::sendProcs_
private

Definition at line 63 of file snl_fei_SubdMsgHandler.hpp.

◆ recvProcs_

std::vector<int> snl_fei::SubdMsgHandler::recvProcs_
private

Definition at line 64 of file snl_fei_SubdMsgHandler.hpp.


The documentation for this class was generated from the following files: