diff options
author | Martin Braun | 2013-01-07 15:54:56 +0100 |
---|---|---|
committer | Martin Braun | 2013-01-15 14:50:00 +0100 |
commit | f2bf6fbb5617f0d26654821fb1eb30bc2a1c16a2 (patch) | |
tree | e12fe91e9a22ebaf84732a785f46b5984c24da40 /gnuradio-core | |
parent | 6f7a9120c08badd42175737faaa896d001073fad (diff) | |
download | gnuradio-f2bf6fbb5617f0d26654821fb1eb30bc2a1c16a2.tar.gz gnuradio-f2bf6fbb5617f0d26654821fb1eb30bc2a1c16a2.tar.bz2 gnuradio-f2bf6fbb5617f0d26654821fb1eb30bc2a1c16a2.zip |
core: added operator == for tags
Diffstat (limited to 'gnuradio-core')
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_tags.h | 5 |
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*/ |