diff options
author | Josh Blum | 2012-11-09 00:40:57 -0800 |
---|---|---|
committer | Josh Blum | 2012-11-09 00:40:57 -0800 |
commit | cb7b2b751220f2444c6187b7d6bf862b4cd56b37 (patch) | |
tree | e460628e5536ec4c87508ff402d04ed9e3513991 /lib | |
parent | 56c61fd8647499674747afd5741d600eb9c9792f (diff) | |
download | sandhi-cb7b2b751220f2444c6187b7d6bf862b4cd56b37.tar.gz sandhi-cb7b2b751220f2444c6187b7d6bf862b4cd56b37.tar.bz2 sandhi-cb7b2b751220f2444c6187b7d6bf862b4cd56b37.zip |
common typedef for item count
Diffstat (limited to 'lib')
-rw-r--r-- | lib/block.cpp | 4 | ||||
-rw-r--r-- | lib/gras_impl/block_actor.hpp | 4 | ||||
-rw-r--r-- | lib/tags.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/block.cpp b/lib/block.cpp index 578b03e..6879700 100644 --- a/lib/block.cpp +++ b/lib/block.cpp @@ -111,12 +111,12 @@ void Block::produce(const size_t which_output, const size_t how_many_items) (*this)->block->produce(which_output, how_many_items); } -uint64_t Block::nitems_read(const size_t which_input) +item_index_t Block::nitems_read(const size_t which_input) { return (*this)->block->items_consumed[which_input]; } -uint64_t Block::nitems_written(const size_t which_output) +item_index_t Block::nitems_written(const size_t which_output) { return (*this)->block->items_produced[which_output]; } diff --git a/lib/gras_impl/block_actor.hpp b/lib/gras_impl/block_actor.hpp index 93e3a2f..8b1b967 100644 --- a/lib/gras_impl/block_actor.hpp +++ b/lib/gras_impl/block_actor.hpp @@ -126,8 +126,8 @@ struct BlockActor : Apology::Worker std::vector<OutputPortConfig> output_configs; //keeps track of production - std::vector<uint64_t> items_consumed; - std::vector<uint64_t> items_produced; + std::vector<item_index_t> items_consumed; + std::vector<item_index_t> items_produced; //work buffers for the new work interface Block::InputItems input_items; diff --git a/lib/tags.cpp b/lib/tags.cpp index a837c24..23e11b9 100644 --- a/lib/tags.cpp +++ b/lib/tags.cpp @@ -24,7 +24,7 @@ Tag::Tag(void): //NOP } -Tag::Tag(const uint64_t &offset, const PMCC &key, const PMCC &value, const PMCC &srcid): +Tag::Tag(const item_index_t &offset, const PMCC &key, const PMCC &value, const PMCC &srcid): offset(offset), key(key), value(value), srcid(srcid) { //NOP |