From: Brian Norris Date: Fri, 7 Dec 2012 06:40:05 +0000 (-0800) Subject: action: move ModelAction::get_node to action.cc X-Git-Tag: oopsla2013~452 X-Git-Url: http://demsky.eecs.uci.edu/git/?p=model-checker.git;a=commitdiff_plain;h=b7fc616e174fe12b91216f3aeb0ce950d747349a action: move ModelAction::get_node to action.cc This function needs to expand a bit, so move it to the implementation file. --- diff --git a/action.cc b/action.cc index 576f78a..121f5ee 100644 --- a/action.cc +++ b/action.cc @@ -346,6 +346,12 @@ void ModelAction::set_try_lock(bool obtainedlock) { value=VALUE_TRYFAILED; } +/** @return The Node associated with this ModelAction */ +Node * ModelAction::get_node() const +{ + return node; +} + /** * Update the model action's read_from action * @param act The action to read from; should be a write diff --git a/action.h b/action.h index 86012c1..8a8e33e 100644 --- a/action.h +++ b/action.h @@ -83,7 +83,7 @@ public: uint64_t get_value() const { return value; } const ModelAction * get_reads_from() const { return reads_from; } - Node * get_node() const { return node; } + Node * get_node() const; void set_node(Node *n) { node = n; } void set_read_from(const ModelAction *act);