diff --git a/fpga/include/villas/fpga/ip.hpp b/fpga/include/villas/fpga/ip.hpp index 191cf4e56..ae467750f 100644 --- a/fpga/include/villas/fpga/ip.hpp +++ b/fpga/include/villas/fpga/ip.hpp @@ -94,10 +94,20 @@ public: return vlnvMatch and (nameWildcard or id.name == otherId.name); } + bool + operator!= (const IpIdentifier& otherId) { + return !(*this == otherId); + } + bool operator== (const Vlnv& otherVlnv) { return id.vlnv == otherVlnv; } + bool + operator== (const std::string& otherName) + { return id.name == otherName; } + + friend std::ostream& operator<< (std::ostream& stream, const IpCore& ip) { return stream << ip.id; }