From b7fc616e174fe12b91216f3aeb0ce950d747349a Mon Sep 17 00:00:00 2001
From: Brian Norris <banorris@uci.edu>
Date: Thu, 6 Dec 2012 22:40:05 -0800
Subject: [PATCH] action: move ModelAction::get_node to action.cc

This function needs to expand a bit, so move it to the implementation
file.
---
 action.cc | 6 ++++++
 action.h  | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

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);
-- 
2.34.1