11 #ifndef INCLUDED_GR_RUNTIME_TAG_CHECKER_H
12 #define INCLUDED_GR_RUNTIME_TAG_CHECKER_H
27 std::vector<tag_t> d_tags;
30 unsigned int d_next_tag_index;
33 tag_checker(std::vector<tag_t> & tags) : d_has_next_tag(false), d_next_tag_index(0)
36 std::sort(d_tags.begin(), d_tags.end());
37 if (!d_tags.empty()) {
38 d_has_next_tag =
true;
45 void get_tags(std::vector<tag_t> & tag_list,
unsigned int offset)
47 while (d_has_next_tag && (offset >= d_next_tag.
offset)) {
48 if (offset == d_next_tag.
offset) {
49 tag_list.push_back(d_next_tag);
51 d_next_tag_index += 1;
52 if (d_next_tag_index >= d_tags.size()) {
53 d_has_next_tag =
false;
55 d_next_tag = d_tags[d_next_tag_index];
deprecated class that was used to go through unsorted tag vectors
Definition: tag_checker.h:25
tag_checker(std::vector< tag_t > &tags)
Definition: tag_checker.h:33
void get_tags(std::vector< tag_t > &tag_list, unsigned int offset)
Definition: tag_checker.h:45
~tag_checker()
Definition: tag_checker.h:43
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:29
uint64_t offset
the item tag occurred at (as a uint64_t)
Definition: tags.h:21