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:
parent
8345a15db0
commit
e96b08c53c
1 changed files with 10 additions and 0 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Reference in a new issue