FEI Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 ()
 

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

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.

snl_fei::SubdMsgHandler::~SubdMsgHandler ( )
virtual

destructor

Definition at line 33 of file snl_fei_SubdMsgHandler.cpp.

Member Function Documentation

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().

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().

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.

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_.

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.

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().

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

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

Definition at line 57 of file snl_fei_SubdMsgHandler.hpp.

Referenced by setSendPattern().

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

Definition at line 58 of file snl_fei_SubdMsgHandler.hpp.

Referenced by setRecvPattern().

RecordCollection* snl_fei::SubdMsgHandler::recordCollection_
private

Definition at line 59 of file snl_fei_SubdMsgHandler.hpp.

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

Definition at line 60 of file snl_fei_SubdMsgHandler.hpp.

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

Definition at line 61 of file snl_fei_SubdMsgHandler.hpp.

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

Definition at line 63 of file snl_fei_SubdMsgHandler.hpp.

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: