23 #ifndef INCLUDED_GR_RUNTIME_TAG_CHECKER_H
24 #define INCLUDED_GR_RUNTIME_TAG_CHECKER_H
34 std::vector<tag_t> d_tags;
37 unsigned int d_next_tag_index;
41 d_has_next_tag(
false),
46 if(d_tags.size() > 0) {
47 d_has_next_tag =
true;
54 void get_tags(std::vector<tag_t> &tag_list,
unsigned int offset)
56 while(d_has_next_tag && (offset >= d_next_tag.
offset)) {
57 if(offset == d_next_tag.
offset) {
58 tag_list.push_back(d_next_tag);
60 d_next_tag_index += 1;
61 if(d_next_tag_index >= d_tags.size()) {
62 d_has_next_tag =
false;
65 d_next_tag = d_tags[d_next_tag_index];
static bool offset_compare(const tag_t &x, const tag_t &y)
Definition: tags.h:52
uint64_t offset
the item tag occurred at (as a uint64_t)
Definition: tags.h:34
void get_tags(std::vector< tag_t > &tag_list, unsigned int offset)
Definition: tag_checker.h:54
#define false
Definition: stdbool.h:33
~tag_checker()
Definition: tag_checker.h:52
Definition: tag_checker.h:31
tag_checker(std::vector< tag_t > &tags)
Definition: tag_checker.h:40