nodestack: add get_read_from_size()
authorBrian Norris <banorris@uci.edu>
Tue, 11 Sep 2012 17:19:10 +0000 (10:19 -0700)
committerBrian Norris <banorris@uci.edu>
Tue, 11 Sep 2012 17:19:10 +0000 (10:19 -0700)
nodestack.cc
nodestack.h

index 2ebfc718a3c89403fb19fff42390d11d284ad789..71af6ef246314b0a40d373c7388418c5f4a01c82 100644 (file)
@@ -221,6 +221,10 @@ uint64_t Node::get_future_value() {
        return future_values[future_index];
 }
 
+int Node::get_read_from_size() {
+       return may_read_from.size();
+}
+
 /**
  * Gets the next 'may_read_from' action from this Node. Only valid for a node
  * where this->action is a 'read'.
index b440b11d58e3242b359a45be8fdac52267c99726..8b4d7aef232bd2d5e09d899493c97c1e0de3d410 100644 (file)
@@ -64,6 +64,7 @@ public:
        const ModelAction * get_read_from();
        bool increment_read_from();
        bool read_from_empty();
+       int get_read_from_size();
 
        void set_promise(unsigned int i);
        bool get_promise(unsigned int i);