FEI Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <snl_fei_RecordMsgHandler.hpp>
Public Types | |
enum | { _FieldMasks_ = 0, _MaskIDs_ = 1, _EqnNumbers_ } |
Public Member Functions | |
RecordMsgHandler (int localProc, RecordCollection *recordCollection, snl_fei::PointBlockMap &ptBlkMap, std::vector< fei::FieldMask * > &fieldMasks, std::vector< int > &eqnNumbers) | |
virtual | ~RecordMsgHandler () |
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 | setTask (int task) |
void | setSendPattern (fei::comm_map *pattern) |
void | setRecvPattern (fei::comm_map *pattern) |
Public Member Functions inherited from fei::MessageHandler< int > | |
virtual | ~MessageHandler () |
Private Member Functions | |
int | localFieldMaskMessageSize (std::vector< fei::FieldMask * > &fieldMasks) |
int | packLocalFieldMasks (std::vector< fei::FieldMask * > &fieldMasks, std::vector< int > &localFieldMasks) |
int | addFieldMasks (std::vector< int > &msg, std::vector< fei::FieldMask * > &fieldMasks) |
int | packMaskIDs (int destProc, std::vector< int > &msg) |
int | mergeMaskIDs (int srcProc, std::vector< int > &msg) |
int | eqnNumbersMsgLength (int destProc) |
int | packEqnNumbersMsg (int destProc, std::vector< int > &msg) |
int | storeEqnNumbers (int srcProc, std::vector< int > &msg) |
Private Attributes | |
fei::comm_map * | sendPattern_ |
fei::comm_map * | recvPattern_ |
RecordCollection * | recordCollection_ |
snl_fei::PointBlockMap & | ptBlkMap_ |
std::vector< fei::FieldMask * > & | fieldMasks_ |
int | whichTask_ |
std::vector< int > | sendProcs_ |
std::vector< int > | recvProcs_ |
std::vector< int > & | eqnNumbers_ |
int | localProc_ |
Implementation of MessageHandler specialized for Record objects.
Definition at line 22 of file snl_fei_RecordMsgHandler.hpp.
anonymous enum |
enumeration for operation-types
Enumerator | |
---|---|
_FieldMasks_ | |
_MaskIDs_ | |
_EqnNumbers_ |
Definition at line 35 of file snl_fei_RecordMsgHandler.hpp.
snl_fei::RecordMsgHandler::RecordMsgHandler | ( | int | localProc, |
RecordCollection * | recordCollection, | ||
snl_fei::PointBlockMap & | ptBlkMap, | ||
std::vector< fei::FieldMask * > & | fieldMasks, | ||
std::vector< int > & | eqnNumbers | ||
) |
constructor
Definition at line 21 of file snl_fei_RecordMsgHandler.cpp.
|
virtual |
destructor
Definition at line 39 of file snl_fei_RecordMsgHandler.cpp.
|
virtual |
Get list of processors to be sent to.
Implements fei::MessageHandler< int >.
Definition at line 43 of file snl_fei_RecordMsgHandler.cpp.
References fei::copyKeysToVector().
|
virtual |
Get list of processors to be received from.
Implements fei::MessageHandler< int >.
Definition at line 49 of file snl_fei_RecordMsgHandler.cpp.
References fei::copyKeysToVector().
|
virtual |
Get length of message to be sent to a specified processor.
Implements fei::MessageHandler< int >.
Definition at line 55 of file snl_fei_RecordMsgHandler.cpp.
References ERReturn.
|
virtual |
Get message data to be sent to specified processor.
Implements fei::MessageHandler< int >.
Definition at line 74 of file snl_fei_RecordMsgHandler.cpp.
References CHK_ERR.
|
virtual |
Process a message received from a specified processor.
Implements fei::MessageHandler< int >.
Definition at line 91 of file snl_fei_RecordMsgHandler.cpp.
References CHK_ERR.
|
inline |
clumsy method for specifying the next operation to be performed.
Definition at line 54 of file snl_fei_RecordMsgHandler.hpp.
References whichTask_.
Referenced by fei::VectorSpace::exchangeFieldInfo(), and fei::VectorSpace::exchangeGlobalIndices().
|
inline |
Set the pattern that specifies processors to be sent to.
Definition at line 57 of file snl_fei_RecordMsgHandler.hpp.
References sendPattern_.
Referenced by fei::VectorSpace::exchangeFieldInfo(), and fei::VectorSpace::exchangeGlobalIndices().
|
inline |
Set the pattern that specifies processors to be received from.
Definition at line 61 of file snl_fei_RecordMsgHandler.hpp.
References recvPattern_.
Referenced by fei::VectorSpace::exchangeFieldInfo(), and fei::VectorSpace::exchangeGlobalIndices().
|
private |
Definition at line 109 of file snl_fei_RecordMsgHandler.cpp.
|
private |
Definition at line 122 of file snl_fei_RecordMsgHandler.cpp.
|
private |
Definition at line 155 of file snl_fei_RecordMsgHandler.cpp.
References fei::FieldMask::calculateMaskID(), and fei::FieldMask::setNumIndices().
|
private |
Definition at line 195 of file snl_fei_RecordMsgHandler.cpp.
References FEI_OSTRINGSTREAM, fei::Record< GlobalIDType >::getFieldMask(), and fei::FieldMask::getMaskID().
|
private |
Definition at line 224 of file snl_fei_RecordMsgHandler.cpp.
References fei::console_out(), ERReturn, FEI_ENDL, fei::FieldMask::getFieldIDs(), fei::Record< GlobalIDType >::getFieldMask(), fei::FieldMask::getFieldSizes(), fei::FieldMask::getMaskID(), and fei::FieldMask::getNumFields().
|
private |
Definition at line 273 of file snl_fei_RecordMsgHandler.cpp.
References ERReturn, fei::Record< GlobalIDType >::getFieldMask(), and fei::FieldMask::getNumIndices().
|
private |
Definition at line 296 of file snl_fei_RecordMsgHandler.cpp.
References ERReturn, fei::Record< GlobalIDType >::getFieldMask(), fei::Record< GlobalIDType >::getNumber(), fei::FieldMask::getNumIndices(), and fei::Record< GlobalIDType >::getOffsetIntoEqnNumbers().
|
private |
Definition at line 330 of file snl_fei_RecordMsgHandler.cpp.
References ERReturn, fei::Record< GlobalIDType >::getOffsetIntoEqnNumbers(), and fei::Record< GlobalIDType >::setNumber().
|
private |
Definition at line 82 of file snl_fei_RecordMsgHandler.hpp.
Referenced by setSendPattern().
|
private |
Definition at line 83 of file snl_fei_RecordMsgHandler.hpp.
Referenced by setRecvPattern().
|
private |
Definition at line 84 of file snl_fei_RecordMsgHandler.hpp.
|
private |
Definition at line 85 of file snl_fei_RecordMsgHandler.hpp.
|
private |
Definition at line 86 of file snl_fei_RecordMsgHandler.hpp.
|
private |
Definition at line 88 of file snl_fei_RecordMsgHandler.hpp.
Referenced by setTask().
|
private |
Definition at line 90 of file snl_fei_RecordMsgHandler.hpp.
|
private |
Definition at line 91 of file snl_fei_RecordMsgHandler.hpp.
|
private |
Definition at line 93 of file snl_fei_RecordMsgHandler.hpp.
|
private |
Definition at line 95 of file snl_fei_RecordMsgHandler.hpp.