23 #ifndef INCLUDED_GR_RUNTIME_TAG_CHECKER_H
24 #define INCLUDED_GR_RUNTIME_TAG_CHECKER_H
38 if(d_tags.size() > 0) {
39 d_has_next_tag =
true;
47 void get_tags(std::vector<tag_t> &tag_list,
unsigned int offset)
49 while(d_has_next_tag && (offset >= d_next_tag.
offset)) {
50 if(offset == d_next_tag.
offset) {
51 tag_list.push_back(d_next_tag);
53 d_next_tag_index += 1;
54 if(d_next_tag_index >= d_tags.size()) {
55 d_has_next_tag =
false;
58 d_next_tag = d_tags[d_next_tag_index];
64 std::vector<tag_t> d_tags;
66 unsigned int 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:47
~tag_checker()
Definition: tag_checker.h:45
Definition: tag_checker.h:31
tag_checker(std::vector< tag_t > &tags)
Definition: tag_checker.h:34