From ca068852b58dc76016534ba38a00faf054c7efb2 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Thu, 2 Aug 2012 12:33:43 -0700 Subject: [PATCH] nodestack: clean up comments --- nodestack.cc | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/nodestack.cc b/nodestack.cc index bdccf38..b93ed46 100644 --- a/nodestack.cc +++ b/nodestack.cc @@ -57,33 +57,29 @@ void Node::print_may_read_from() (*it)->print(); } -/** This method sets a promise to explore meeting with the given - * node. - * @param i is the promise index. +/** + * Sets a promise to explore meeting with the given node. + * @param i is the promise index. */ - void Node::set_promise(uint32_t i) { if (i>=promises.size()) promises.resize(i+1,0); promises[i]=1; } -/** This method looks up whether a given promise should be satisfied - * by this node. - * - * @param i is the promise index. +/** + * Looks up whether a given promise should be satisfied by this node. + * @param i The promise index. * @return true if the promise should be satisfied by the given model action. */ - bool Node::get_promise(uint32_t i) { return (i=future_values.size()); } @@ -261,7 +254,6 @@ bool Node::increment_read_from() { * Increments the index into the future_values set to explore the next item. * @return Returns false if we have explored all values. */ - bool Node::increment_future_value() { future_index++; return (future_index