summaryrefslogtreecommitdiffstats
path: root/src/removeoverlap/variable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/removeoverlap/variable.cpp')
-rw-r--r--src/removeoverlap/variable.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/removeoverlap/variable.cpp b/src/removeoverlap/variable.cpp
new file mode 100644
index 000000000..0cf2e28a7
--- /dev/null
+++ b/src/removeoverlap/variable.cpp
@@ -0,0 +1,20 @@
+/**
+ * \brief Remove overlaps function
+ *
+ * Authors:
+ * Tim Dwyer <tgdwyer@gmail.com>
+ *
+ * Copyright (C) 2005 Authors
+ *
+ * Released under GNU GPL. Read the file 'COPYING' for more information.
+ */
+#include "variable.h"
+std::ostream& operator <<(std::ostream &os, const Variable &v) {
+ os << "(" << v.id << "=" << v.position() << ")";
+ return os;
+}
+
+#include "block.h"
+double Variable::position() const {
+ return block->posn+offset;
+}