Reputation: 385
Is there a way to have joiner/indexer or composite node with an update policy? The update policy has the requirement:
Example:
Update node with two ports 1 and 2. Value x1 is pushed into port 1 => the node is ready to send updates with "pair" {x1, nullptr} while keeping x1 in the queue.
Value x2 arrives at port 1 => the node is ready and sends {x2, nullptr}, x1 is overwritten and x2 is conserved
Value y1 arrives at port 2 => the node is ready and sends {x2, y1} and x2 and y1 are conserved
Value x3 arrived at port 1 => the node is ready and sends {x3, y1} and x3 and y1 are conserved
This looks like combination of either joiner/indexer or composite and overwrite_node. My value type is shared_ptr so nullptr would work for me.
Upvotes: 1
Views: 38