Lines Matching refs:iterator
23 #include <iterator>
34 class iterator : public std::iterator<std::bidirectional_iterator_tag, uint32_t> {
36 iterator(ElfInterfaceArm* interface, size_t index) : interface_(interface), index_(index) { }
38 iterator& operator++() { index_++; return *this; }
39 iterator& operator++(int increment) { index_ += increment; return *this; }
40 iterator& operator--() { index_--; return *this; }
41 iterator& operator--(int decrement) { index_ -= decrement; return *this; }
43 bool operator==(const iterator& rhs) { return this->index_ == rhs.index_; }
44 bool operator!=(const iterator& rhs) { return this->index_ != rhs.index_; }
62 iterator begin() { return iterator(this, 0); }
63 iterator end() { return iterator(this, total_entries_); }