// Generated by the C++ Middleware Writer version 1.10 #include #include #include #include #include #include extern uint32_t msg_length_max; struct Msgs { void Send(SendBuffer* buf, const list& abt1) { unsigned int headCount = 0; Counter cntr(msg_length_max); cntr.Add(sizeof(int)); cntr.MultiplyAndAdd(abt1.size(), sizeof(int32_t)); buf->Receive(&cntr.value_, sizeof(cntr.value_)); headCount = abt1.size(); buf->Receive(&headCount, sizeof(headCount)); list::const_iterator mediator2 = abt1.begin(); list::const_iterator omega2 = abt1.end(); for (; mediator2 != omega2; ++mediator2) { buf->Receive(&(*mediator2), sizeof(int32_t)); } buf->Flush(); } template void Receive(B* buf, list& abt1) { unsigned int headCount[1]; buf->Give(headCount[0]); while (headCount[0] > 0) { --headCount[0]; int32_t rep3; buf->Give(rep3); abt1.push_back(rep3); } } void Send(SendBuffer* buf, const list& abt1, const deque& abt2) { unsigned int headCount = 0; Counter cntr(msg_length_max); cntr.Add(sizeof(int)); cntr.MultiplyAndAdd(abt1.size(), sizeof(int32_t)); cntr.Add(sizeof(int)); cntr.MultiplyAndAdd(abt2.size(), sizeof(int32_t)); buf->Receive(&cntr.value_, sizeof(cntr.value_)); headCount = abt1.size(); buf->Receive(&headCount, sizeof(headCount)); list::const_iterator mediator4 = abt1.begin(); list::const_iterator omega4 = abt1.end(); for (; mediator4 != omega4; ++mediator4) { buf->Receive(&(*mediator4), sizeof(int32_t)); } headCount = abt2.size(); buf->Receive(&headCount, sizeof(headCount)); deque::const_iterator mediator5 = abt2.begin(); deque::const_iterator omega5 = abt2.end(); for (; mediator5 != omega5; ++mediator5) { buf->Receive(&(*mediator5), sizeof(int32_t)); } buf->Flush(); } template void Receive(B* buf, list& abt1, deque& abt2) { unsigned int headCount[1]; buf->Give(headCount[0]); while (headCount[0] > 0) { --headCount[0]; int32_t rep6; buf->Give(rep6); abt1.push_back(rep6); } buf->Give(headCount[0]); while (headCount[0] > 0) { --headCount[0]; int32_t rep7; buf->Give(rep7); abt2.push_back(rep7); } } void Send(SendBuffer* buf, const set& abt1) { unsigned int headCount = 0; Counter cntr(msg_length_max); cntr.Add(sizeof(int)); cntr.MultiplyAndAdd(abt1.size(), sizeof(int32_t)); buf->Receive(&cntr.value_, sizeof(cntr.value_)); headCount = abt1.size(); buf->Receive(&headCount, sizeof(headCount)); set::const_iterator mediator8 = abt1.begin(); set::const_iterator omega8 = abt1.end(); for (; mediator8 != omega8; ++mediator8) { buf->Receive(&(*mediator8), sizeof(int32_t)); } buf->Flush(); } template void Receive(B* buf, set& abt1) { unsigned int headCount[1]; buf->Give(headCount[0]); set::iterator endIt1 = abt1.end(); while (headCount[0] > 0) { --headCount[0]; int32_t rep9; buf->Give(rep9); abt1.insert(endIt1, rep9); } } };