From 3e0943d0e61b11cdd6b0b2dd7d0815a64e63725d Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 1 Apr 2013 20:26:24 -0700 Subject: gras: fix from previous commit: swig element equals Just put an API call into element so its always there, and call it from swig. --- lib/element.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/element.cpp') 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; -- cgit