11 #ifndef INCLUDED_GR_TAGS_H
12 #define INCLUDED_GR_TAGS_H
47 return (t.
key == key) && (t.
value == value) && (t.
srcid == srcid) &&
61 : offset(rhs.offset), key(rhs.key), value(rhs.value), srcid(rhs.srcid)
#define GR_RUNTIME_API
Definition: gnuradio-runtime/include/gnuradio/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29
std::shared_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting).
Definition: pmt.h:83
#define PMT_F
Definition: pmt.h:123
#define PMT_NIL
Definition: pmt.h:121
std::vector< long > marked_deleted
Used by gr_buffer to mark a tagged as deleted by a specific block. You can usually ignore this.
Definition: tags.h:34
static bool offset_compare(const tag_t &x, const tag_t &y)
Comparison function to test which tag, x or y, came first in time.
Definition: tags.h:42
friend bool operator<(const tag_t &x, const tag_t &y)
Comparison function to test which tag, x or y, came first in time.
Definition: tags.h:37
tag_t()
Definition: tags.h:51
~tag_t()
Definition: tags.h:75
uint64_t offset
the item tag occurred at (as a uint64_t)
Definition: tags.h:21
tag_t(const tag_t &rhs)
Copy constructor; constructs identical tag, but doesn't copy marked_delete.
Definition: tags.h:60
pmt::pmt_t srcid
the source ID of tag (as a PMT)
Definition: tags.h:30
bool operator==(const tag_t &t) const
equality comparison. Compares all details, except marked_delete
Definition: tags.h:45
pmt::pmt_t value
the value of tag (as a PMT)
Definition: tags.h:27
pmt::pmt_t key
the key of tag (as a PMT symbol)
Definition: tags.h:24
tag_t & operator=(const tag_t &rhs)
Definition: tags.h:64