1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

lib/ip: implement more comparison operators for IpCore

This commit is contained in:
daniel-k 2018-01-09 16:27:57 +01:00
parent 8345a15db0
commit e96b08c53c

View file

@ -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; }