Initial end-to-end simulation support
Change-Id: Ifcdfb8e0ee3e40b9071ade2ff5dcab5037ec7887
Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
diff --git a/src/isolator/hei_signature.hpp b/src/isolator/hei_signature.hpp
index 844aad6..2bf91e1 100644
--- a/src/isolator/hei_signature.hpp
+++ b/src/isolator/hei_signature.hpp
@@ -78,6 +78,51 @@
{
return iv_attnType;
}
+
+ public: // Operators
+ /** @brief Equals operator. */
+ bool operator==(const Signature& i_r) const
+ {
+ return (getChip() == i_r.getChip() && getId() == i_r.getId() &&
+ getInstance() == i_r.getInstance() &&
+ getBit() == i_r.getBit() && getAttnType() == i_r.getAttnType());
+ }
+
+ /** @brief Less than operator. */
+ bool operator<(const Signature& i_r) const
+ {
+ if (getChip() < i_r.getChip())
+ {
+ return true;
+ }
+ else if (getChip() == i_r.getChip())
+ {
+ if (getId() < i_r.getId())
+ {
+ return true;
+ }
+ else if (getId() == i_r.getId())
+ {
+ if (getInstance() < i_r.getInstance())
+ {
+ return true;
+ }
+ else if (getInstance() == i_r.getInstance())
+ {
+ if (getBit() < i_r.getBit())
+ {
+ return true;
+ }
+ else if (getBit() == i_r.getBit())
+ {
+ return (getAttnType() < i_r.getAttnType());
+ }
+ }
+ }
+ }
+
+ return false;
+ }
};
} // end namespace libhei