summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Braun2013-01-07 15:54:56 +0100
committerMartin Braun2013-01-15 14:50:00 +0100
commitf2bf6fbb5617f0d26654821fb1eb30bc2a1c16a2 (patch)
treee12fe91e9a22ebaf84732a785f46b5984c24da40
parent6f7a9120c08badd42175737faaa896d001073fad (diff)
downloadgnuradio-f2bf6fbb5617f0d26654821fb1eb30bc2a1c16a2.tar.gz
gnuradio-f2bf6fbb5617f0d26654821fb1eb30bc2a1c16a2.tar.bz2
gnuradio-f2bf6fbb5617f0d26654821fb1eb30bc2a1c16a2.zip
core: added operator == for tags
-rw-r--r--gnuradio-core/src/lib/runtime/gr_tags.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_tags.h b/gnuradio-core/src/lib/runtime/gr_tags.h
index 8bffcd0fe..a9ca90235 100644
--- a/gnuradio-core/src/lib/runtime/gr_tags.h
+++ b/gnuradio-core/src/lib/runtime/gr_tags.h
@@ -45,6 +45,11 @@ struct GR_CORE_API gr_tag_t{
){
return x.offset < y.offset;
}
+
+ inline bool operator == (const gr_tag_t &t) const
+ {
+ return (t.key == key) && (t.value == value) && (t.srcid == srcid) && (t.offset == offset);
+ }
};
#endif /*INCLUDED_GR_TAGS_H*/