diff options
Diffstat (limited to 'include/gras')
-rw-r--r-- | include/gras/block.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/gras/block.hpp b/include/gras/block.hpp index 5ce207b..bddc0f4 100644 --- a/include/gras/block.hpp +++ b/include/gras/block.hpp @@ -123,10 +123,16 @@ struct GRAS_API Block : Element ******************************************************************/ //! Call during work to consume items - void consume(const size_t num_items, const size_t which_input); + void consume(const size_t which_input, const size_t num_items); //! Call during work to produce items - void produce(const size_t num_items, const size_t which_output); + void produce(const size_t which_output, const size_t num_items); + + //! Convenience method to consume items on all inputs + void consume(const size_t num_items); + + //! Convenience method to produce items on all outputs + void produce(const size_t num_items); //! Get absolute count of all items consumed on the given input port item_index_t get_consumed(const size_t which_input); |