Add some ExplicitBitVect operations to Swig (#7204)

This commit is contained in:
Gareth Jones
2024-03-02 21:55:37 -07:00
committed by greg landrum
parent fdaf27d8af
commit 3278ac79f4
2 changed files with 76 additions and 0 deletions

View File

@@ -86,6 +86,22 @@
($self)->getOnBits(*bits);
return bits;
}
void andOperator(const ExplicitBitVect & other) {
*($self) &= other;
}
void orOperator(const ExplicitBitVect & other) {
*($self) |= other;
}
void xorOperator(const ExplicitBitVect & other) {
*($self) ^= other;
}
void copy(const ExplicitBitVect &other) {
*($self) = other;
}
}
#ifdef SWIGJAVA