GNU Radio Manual and C++ API Reference  3.7.13.4
The Free & Open Software Radio Ecosystem
gr::tag_t Struct Reference

#include <gnuradio/tags.h>

Public Member Functions

bool operator== (const tag_t &t) const
 
 tag_t ()
 
 tag_t (const tag_t &rhs)
 
tag_toperator= (const tag_t &rhs)
 
 ~tag_t ()
 

Static Public Member Functions

static bool offset_compare (const tag_t &x, const tag_t &y)
 

Public Attributes

uint64_t offset
 the item tag occurred at (as a uint64_t) More...
 
pmt::pmt_t key
 the key of tag (as a PMT symbol) More...
 
pmt::pmt_t value
 the value of tag (as a PMT) More...
 
pmt::pmt_t srcid
 the source ID of tag (as a PMT) More...
 
std::vector< long > marked_deleted
 Used by gr_buffer to mark a tagged as deleted by a specific block. You can usually ignore this. More...
 

Constructor & Destructor Documentation

gr::tag_t::tag_t ( )
inline
gr::tag_t::tag_t ( const tag_t rhs)
inline
gr::tag_t::~tag_t ( )
inline

Member Function Documentation

static bool gr::tag_t::offset_compare ( const tag_t x,
const tag_t y 
)
inlinestatic

Comparison function to test which tag, x or y, came first in time

References offset.

Referenced by gr::tag_checker::tag_checker().

tag_t& gr::tag_t::operator= ( const tag_t rhs)
inline

References key, offset, srcid, and value.

bool gr::tag_t::operator== ( const tag_t t) const
inline

References key, offset, srcid, and value.

Member Data Documentation

pmt::pmt_t gr::tag_t::key

the key of tag (as a PMT symbol)

Referenced by gr::block::add_item_tag(), operator=(), operator==(), and gr::block::remove_item_tag().

std::vector<long> gr::tag_t::marked_deleted

Used by gr_buffer to mark a tagged as deleted by a specific block. You can usually ignore this.

uint64_t gr::tag_t::offset
pmt::pmt_t gr::tag_t::srcid

the source ID of tag (as a PMT)

Referenced by gr::block::add_item_tag(), operator=(), operator==(), and gr::block::remove_item_tag().

pmt::pmt_t gr::tag_t::value

the value of tag (as a PMT)

Referenced by gr::block::add_item_tag(), operator=(), operator==(), and gr::block::remove_item_tag().


The documentation for this struct was generated from the following file: