diff --git a/ibrdtn/ibrdtn/ibrdtn/data/Bundle.cpp b/ibrdtn/ibrdtn/ibrdtn/data/Bundle.cpp index f5158606c..943544e3d 100644 --- a/ibrdtn/ibrdtn/ibrdtn/data/Bundle.cpp +++ b/ibrdtn/ibrdtn/ibrdtn/data/Bundle.cpp @@ -71,11 +71,21 @@ namespace dtn return other == (const PrimaryBlock&)(*this); } + bool Bundle::operator!=(const BundleID& other) const + { + return other != (const PrimaryBlock&)(*this); + } + bool Bundle::operator==(const MetaBundle& other) const { return other == (const PrimaryBlock&)(*this); } + bool Bundle::operator!=(const MetaBundle& other) const + { + return other != (const PrimaryBlock&)(*this); + } + bool Bundle::operator!=(const Bundle& other) const { return (const PrimaryBlock&)(*this) != (const PrimaryBlock&)other; diff --git a/ibrdtn/ibrdtn/ibrdtn/data/Bundle.h b/ibrdtn/ibrdtn/ibrdtn/data/Bundle.h index 9bbc066d7..6a4ea4743 100644 --- a/ibrdtn/ibrdtn/ibrdtn/data/Bundle.h +++ b/ibrdtn/ibrdtn/ibrdtn/data/Bundle.h @@ -97,7 +97,9 @@ namespace dtn virtual ~Bundle(); bool operator==(const BundleID& other) const; + bool operator!=(const BundleID& other) const; bool operator==(const MetaBundle& other) const; + bool operator!=(const MetaBundle& other) const; bool operator==(const Bundle& other) const; bool operator!=(const Bundle& other) const;