@@ -16,7 +16,7 @@ using namespace std;
1616
1717class FactoryOp {
1818 map<string, Program> programs;
19- map<string, map<string, vector<Message< uint64_t , double >>> > messageBuffer;
19+ OperatorPayload< uint64_t , double > messageBuffer;
2020
2121 public:
2222 FactoryOp ();
@@ -66,7 +66,7 @@ class FactoryOp {
6666 return true ;
6767 }
6868
69- map<string, map<string, vector<Message< uint64_t , double >>> > processMessageBuffer (const string& apId) {
69+ OperatorPayload< uint64_t , double > processMessageBuffer (const string& apId) {
7070 if (this ->programs .count (apId) == 0 ) throw runtime_error (" Program " + apId + " was not found" );
7171 if (this ->messageBuffer .count (apId) > 0 ) {
7272 if (!this ->messageBuffer .at (apId).empty ()) {
@@ -79,7 +79,7 @@ class FactoryOp {
7979 return {};
8080 }
8181
82- map<string, map<string, vector<Message< uint64_t , double >>> > processMessageBufferDebug (const string& apId) {
82+ OperatorPayload< uint64_t , double > processMessageBufferDebug (const string& apId) {
8383 if (this ->programs .count (apId) == 0 ) throw runtime_error (" Program " + apId + " was not found" );
8484 if (this ->messageBuffer .count (apId) > 0 ) {
8585 if (!this ->messageBuffer .at (apId).empty ()) {
@@ -107,15 +107,15 @@ class FactoryOp {
107107 return this ->programs .at (apId).getProgramOutputFilter ();
108108 }
109109
110- map<string, map<string, vector<Message< uint64_t , double >>>> processMessageMap (
111- string const & apId, const map<string, vector<Message< uint64_t , double >> >& messagesMap) {
110+ OperatorPayload< uint64_t , double > processMessageMap (string const & apId,
111+ const PortPayload< uint64_t , double >& messagesMap) {
112112 auto it = programs.find (apId);
113113 if (it == programs.end ()) return {};
114114 return it->second .receive (messagesMap);
115115 }
116116
117- map<string, map<string, vector<Message< uint64_t , double >>>> processMessageMapDebug (
118- string const & apId, const map<string, vector<Message< uint64_t , double >> >& messagesMap) {
117+ OperatorPayload< uint64_t , double > processMessageMapDebug (string const & apId,
118+ const PortPayload< uint64_t , double >& messagesMap) {
119119 auto it = programs.find (apId);
120120 if (it == programs.end ()) return {};
121121 return it->second .receiveDebug (messagesMap);
0 commit comments