Browse Source

Equality Comparisons for JaniVars, just to make life easier :-)

tempestpy_adaptions
sjunges 8 years ago
parent
commit
4ad2ac26d1
  1. 7
      src/storm/storage/jani/Variable.cpp
  2. 3
      src/storm/storage/jani/Variable.h

7
src/storm/storage/jani/Variable.cpp

@ -102,5 +102,12 @@ namespace storm {
} }
} }
bool operator==(Variable const& lhs, Variable const& rhs) {
return lhs.getExpressionVariable() == rhs.getExpressionVariable();
}
bool operator!=(Variable const& lhs, Variable const& rhs) {
return !(lhs == rhs);
}
} }
} }

3
src/storm/storage/jani/Variable.h

@ -104,5 +104,8 @@ namespace storm {
boost::optional<storm::expressions::Expression> init; boost::optional<storm::expressions::Expression> init;
}; };
bool operator==(Variable const& lhs, Variable const& rhs);
bool operator!=(Variable const& lhs, Variable const& rhs);
} }
} }
Loading…
Cancel
Save