18 #include "../shell/Shell.h"
21 #include "../shell/Shell.h"
31 : mid_( mid), e1_( e1 ), e2_( e2 )
61 return reinterpret_cast< const Msg*
>( m.
data() );
82 vector< pair< BindIndex, FuncId > > ids;
87 for (
unsigned int i = 0; i < ids.size(); ++i ) {
90 cout <<
"Error: Msg::getSrcFieldsOnE1: Failed to find field on msg " <<
93 ret.push_back( name );
101 vector< pair< BindIndex, FuncId > > ids;
102 vector< string > ret;
106 for (
unsigned int i = 0; i < ids.size(); ++i ) {
109 cout <<
"Error: Msg::getDestFieldsOnE2: Failed to find field on msg " <<
112 ret.push_back( name );
120 vector< pair< BindIndex, FuncId > > ids;
121 vector< string > ret;
125 for (
unsigned int i = 0; i < ids.size(); ++i ) {
128 cout <<
"Error: Msg::getSrcFieldsOnE2: Failed to find field on msg " <<
131 ret.push_back( name );
139 vector< pair< BindIndex, FuncId > > ids;
140 vector< string > ret;
144 for (
unsigned int i = 0; i < ids.size(); ++i ) {
147 cout <<
"Error: Msg::getDestFieldsOnE1: Failed to find field on msg " <<
150 ret.push_back( name );
172 "Id of source Element.",
177 "Id of source Element.",
183 "Names of SrcFinfos for messages going from e1 to e2. There are"
184 "matching entries in the destFieldsOnE2 vector",
189 "Names of DestFinfos for messages going from e1 to e2. There are"
190 "matching entries in the srcFieldsOnE1 vector",
195 "Names of SrcFinfos for messages going from e2 to e1. There are"
196 "matching entries in the destFieldsOnE1 vector",
201 "Names of destFinfos for messages going from e2 to e1. There are"
202 "matching entries in the srcFieldsOnE2 vector",
208 "The element adjacent to the specified element",
211 static Finfo* msgFinfos[] = {
225 sizeof( msgFinfos ) /
sizeof(
Finfo* ),
268 "oneToOneDataIndexMsg",
static char * lookupMsg(unsigned int index)
Static function for Msg access.
virtual ObjId findOtherEnd(ObjId) const =0
ObjId getAdjacent(ObjId) const
static char * lookupMsg(unsigned int index)
Static function for Msg access.
static const Cinfo * initCinfo()
Setup function for Element-style access to Msg fields.
vector< string > getDestFieldsOnE2() const
static const Cinfo * initCinfo()
Setup function for Element-style access to Msg fields.
static const Cinfo * initCinfo()
Setup function for Element-style access to Msg fields.
unsigned int getFieldsOfOutgoingMsg(ObjId mid, vector< pair< BindIndex, FuncId > > &ret) const
static unsigned int numMsg()
Msg lookup functions.
static bool isLastTrump()
True when MOOSE has been terminated and is being cleaned up.
static char * lookupMsg(unsigned int index)
Static function for Msg access.
static bool lastTrump_
Flag to indicate termination of program.
static void deleteMsg(ObjId mid)
static unsigned int numMsg()
Msg lookup functions.
static char * lookupMsg(unsigned int index)
Static function for Msg access.
static Id msgManagerId_
Element 2 attached to Msg.
static const Cinfo * msgCinfo
static const Cinfo * initCinfo()
Setup function for Element-style access to Msg fields.
const string & destFinfoName(FuncId fid) const
virtual ~Msg()
Destructor.
static unsigned int numMsg()
Msg lookup functions.
const Cinfo * cinfo() const
Element * e1_
Index of this Msg on the msg_ vector.
static const Msg * lastMsg()
static unsigned int numMsg()
Msg lookup functions.
static const Cinfo * initCinfo()
static const Cinfo * initCinfo()
static unsigned int initMsgManagers()
vector< string > getSrcFieldsOnE1() const
static bool adopt(ObjId parent, Id child, unsigned int msgIndex)
vector< string > getSrcFieldsOnE2() const
static char * lookupMsg(unsigned int index)
Static function for Msg access.
static const Msg * getMsg(ObjId m)
const string & srcFinfoName(BindIndex bid) const
Element * e2_
Element 1 attached to Msg.
static const Cinfo * initCinfo()
static unsigned int numMsg()
Msg lookup functions.
vector< string > getDestFieldsOnE1() const
const string & getName() const
static const Msg * lastMsg_
Msg(ObjId mid, Element *e1, Element *e2)
Constructor.
static char * lookupMsg(unsigned int index)
Static function for Msg access.
static const Cinfo * initCinfo()
static void clearAllMsgs()
static unsigned int numMsg()
Assign the first DataId.