diff options
author | Morgan Deters <mdeters@gmail.com> | 2011-09-20 14:58:30 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2011-09-20 14:58:30 +0000 |
commit | c241cf3bef737a58162868d51a2c773c5af5abbf (patch) | |
tree | 741fac2402e78a85bdc42e3b47ee23d7c10db9f8 /src/util/integer.i | |
parent | f1c1cc7c3de0d4a5f310357a249cef82f73c588c (diff) |
Merge from "swig" branch: language binding for Java is compiling and linking. Enable with --enable-language-bindings=java
Diffstat (limited to 'src/util/integer.i')
-rw-r--r-- | src/util/integer.i | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/util/integer.i b/src/util/integer.i new file mode 100644 index 000000000..4aaa532a7 --- /dev/null +++ b/src/util/integer.i @@ -0,0 +1,29 @@ +%{ +#include "util/integer.h" +%} + +%ignore CVC4::Integer::Integer(int); +%ignore CVC4::Integer::Integer(unsigned int); + +%rename(assign) CVC4::Integer::operator=(const Integer&); +%rename(equals) CVC4::Integer::operator==(const Integer&) const; +%ignore CVC4::Integer::operator!=(const Integer&) const; +%rename(plus) CVC4::Integer::operator+(const Integer&) const; +%rename(minus) CVC4::Integer::operator-() const; +%rename(minus) CVC4::Integer::operator-(const Integer&) const; +%rename(times) CVC4::Integer::operator*(const Integer&) const; +%rename(dividedBy) CVC4::Integer::operator/(const Integer&) const; +%rename(modulo) CVC4::Integer::operator%(const Integer&) const; +%rename(plusAssign) CVC4::Integer::operator+=(const Integer&); +%rename(minusAssign) CVC4::Integer::operator-=(const Integer&); +%rename(timesAssign) CVC4::Integer::operator*=(const Integer&); +%rename(dividedByAssign) CVC4::Integer::operator/=(const Integer&); +%rename(moduloAssign) CVC4::Integer::operator%=(const Integer&); +%rename(less) CVC4::Integer::operator<(const Integer&) const; +%rename(lessEqual) CVC4::Integer::operator<=(const Integer&) const; +%rename(greater) CVC4::Integer::operator>(const Integer&) const; +%rename(greaterEqual) CVC4::Integer::operator>=(const Integer&) const; + +%ignore CVC4::operator<<(std::ostream&, const Integer&); + +%include "util/integer.h" |