summaryrefslogtreecommitdiff
path: root/lib/element.cpp
diff options
context:
space:
mode:
authorJosh Blum2013-04-01 20:26:24 -0700
committerJosh Blum2013-04-01 20:26:24 -0700
commit3e0943d0e61b11cdd6b0b2dd7d0815a64e63725d (patch)
treecbebd5b2ef1525e1799521aa60c39b2b26c40310 /lib/element.cpp
parenta6cfe0fc89473d6f39d3376147f1de1658b47c46 (diff)
downloadsandhi-3e0943d0e61b11cdd6b0b2dd7d0815a64e63725d.tar.gz
sandhi-3e0943d0e61b11cdd6b0b2dd7d0815a64e63725d.tar.bz2
sandhi-3e0943d0e61b11cdd6b0b2dd7d0815a64e63725d.zip
gras: fix from previous commit: swig element equals
Just put an API call into element so its always there, and call it from swig.
Diffstat (limited to 'lib/element.cpp')
-rw-r--r--lib/element.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/element.cpp b/lib/element.cpp
index f291310..6736011 100644
--- a/lib/element.cpp
+++ b/lib/element.cpp
@@ -38,6 +38,11 @@ ElementImpl::~ElementImpl(void)
if (this->block) this->block_cleanup();
}
+bool Element::equals(const Element &rhs)
+{
+ return this->get() == rhs.get();
+}
+
long Element::unique_id(void) const
{
return (*this)->unique_id;