diff options
author | Josh Blum | 2013-04-01 20:26:24 -0700 |
---|---|---|
committer | Josh Blum | 2013-04-01 20:26:24 -0700 |
commit | 3e0943d0e61b11cdd6b0b2dd7d0815a64e63725d (patch) | |
tree | cbebd5b2ef1525e1799521aa60c39b2b26c40310 /lib/element.cpp | |
parent | a6cfe0fc89473d6f39d3376147f1de1658b47c46 (diff) | |
download | sandhi-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.cpp | 5 |
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; |