! \ingroup lowlevelil */
| 476 | \ingroup lowlevelil |
| 477 | */ |
| 478 | class LowLevelILInstructionList |
| 479 | { |
| 480 | struct ListIterator |
| 481 | { |
| 482 | LowLevelILIntegerList::const_iterator pos; |
| 483 | size_t instructionIndex; |
| 484 | bool operator==(const ListIterator& a) const { return pos == a.pos; } |
| 485 | bool operator!=(const ListIterator& a) const { return pos != a.pos; } |
| 486 | bool operator<(const ListIterator& a) const { return pos < a.pos; } |
| 487 | ListIterator& operator++() |
| 488 | { |
| 489 | ++pos; |
| 490 | return *this; |
| 491 | } |
| 492 | const LowLevelILInstruction operator*(); |
| 493 | }; |
| 494 | |
| 495 | LowLevelILIntegerList m_list; |
| 496 | size_t m_instructionIndex; |
| 497 | |
| 498 | public: |
| 499 | typedef ListIterator const_iterator; |
| 500 | |
| 501 | LowLevelILInstructionList( |
| 502 | LowLevelILFunction* func, const BNLowLevelILInstruction& instr, size_t count, size_t instrIndex); |
| 503 | |
| 504 | const_iterator begin() const; |
| 505 | const_iterator end() const; |
| 506 | size_t size() const; |
| 507 | const LowLevelILInstruction operator[](size_t i) const; |
| 508 | |
| 509 | operator _STD_VECTOR<LowLevelILInstruction>() const; |
| 510 | }; |
| 511 | |
| 512 | /*! |
| 513 | \ingroup lowlevelil |
no outgoing calls
no test coverage detected