@@ -40,7 +40,7 @@ class Demultiplexer : public Operator<T, V> {
4040 throw std::runtime_error (typeName () + " : " + inputPort + " refers to a non existing input data port" );
4141 }
4242
43- virtual OperatorPayload <T, V> executeData () override {
43+ virtual ProgramMessage <T, V> executeData () override {
4444 auto toEmit = processData ();
4545 if (!toEmit.empty ()) return this ->emit (toEmit);
4646 return {};
@@ -61,21 +61,21 @@ class Demultiplexer : public Operator<T, V> {
6161 throw std::runtime_error (typeName () + " : " + inputPort + " : refers to a non existing input control port" );
6262 }
6363
64- virtual OperatorPayload <T, V> executeControl () override {
64+ virtual ProgramMessage <T, V> executeControl () override {
6565 auto toEmit = processControl ();
6666 if (!toEmit.empty ()) return this ->emit (toEmit);
6767 return {};
6868 }
6969
70- virtual PortPayload <T, V> processData () { return join (); }
70+ virtual OperatorMessage <T, V> processData () { return join (); }
7171
72- virtual PortPayload <T, V> processControl () { return join (); }
72+ virtual OperatorMessage <T, V> processControl () { return join (); }
7373
7474 private:
7575 map<string, string> controlMap;
7676
77- PortPayload <T, V> join () {
78- PortPayload <T, V> outputMsgs;
77+ OperatorMessage <T, V> join () {
78+ OperatorMessage <T, V> outputMsgs;
7979
8080 vector<string> in = this ->getDataInputs ();
8181 string inputPort;
@@ -105,7 +105,7 @@ class Demultiplexer : public Operator<T, V> {
105105 if (instructions == this ->getNumControlInputs ()) {
106106 for (auto it = this ->controlInputs .begin (); it != this ->controlInputs .end (); ++it) {
107107 if (it->second .front ().value == 1 ) {
108- Messages <T, V> v;
108+ PortMessage <T, V> v;
109109 v.push_back (this ->dataInputs .find (inputPort)->second .front ());
110110 outputMsgs.emplace (this ->controlMap .find (it->first )->second , v);
111111 }
0 commit comments