diff --git a/alib/src/regexp/RegExp.cpp b/alib/src/regexp/RegExp.cpp index 65b63e54a07c81bd448925f5dc9490030aed1712..3d8f2dbe1373c71a98cdfeef7a5db82056ebdd3b 100644 --- a/alib/src/regexp/RegExp.cpp +++ b/alib/src/regexp/RegExp.cpp @@ -98,6 +98,10 @@ bool RegExp::operator==(const RegExp& other) const { return *(this->regExp) == *(other.regExp); } +bool RegExp::operator!=(const RegExp& other) const { + return *(this->regExp) != *(other.regExp); +} + bool RegExp::operator>(const RegExp& other) const { return *(this->regExp) > *(other.regExp); } diff --git a/alib/src/regexp/RegExp.h b/alib/src/regexp/RegExp.h index def92709e7c4c2a71a2cf05931f046405ba064b8..36b5de12adeab6ada54b0b62329897a26a03cbbc 100644 --- a/alib/src/regexp/RegExp.h +++ b/alib/src/regexp/RegExp.h @@ -77,9 +77,10 @@ public: * @param regexp RegExp to print */ friend ostream& operator<<(ostream& out, RegExp& regexp); - + bool operator<(const RegExp&) const; bool operator==(const RegExp&) const; + bool operator!=(const RegExp&) const; bool operator>(const RegExp&) const; };