summaryrefslogtreecommitdiff
path: root/mediumlevelilinstruction.h
diff options
context:
space:
mode:
Diffstat (limited to 'mediumlevelilinstruction.h')
-rw-r--r--mediumlevelilinstruction.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/mediumlevelilinstruction.h b/mediumlevelilinstruction.h
index 23413b4a..a1f8e00d 100644
--- a/mediumlevelilinstruction.h
+++ b/mediumlevelilinstruction.h
@@ -220,6 +220,12 @@ namespace BinaryNinja
{
struct ListIterator
{
+ typedef std::forward_iterator_tag iterator_category;
+ typedef uint64_t value_type;
+ typedef std::ptrdiff_t difference_type;
+ typedef void pointer;
+ typedef value_type reference;
+
#ifdef BINARYNINJACORE_LIBRARY
MediumLevelILFunction* function;
#else
@@ -258,6 +264,12 @@ namespace BinaryNinja
{
struct ListIterator
{
+ typedef std::forward_iterator_tag iterator_category;
+ typedef size_t value_type;
+ typedef std::ptrdiff_t difference_type;
+ typedef void pointer;
+ typedef value_type reference;
+
MediumLevelILIntegerList::const_iterator pos;
bool operator==(const ListIterator& a) const { return pos == a.pos; }
bool operator!=(const ListIterator& a) const { return pos != a.pos; }
@@ -292,6 +304,12 @@ namespace BinaryNinja
{
struct ListIterator
{
+ typedef std::forward_iterator_tag iterator_category;
+ typedef std::pair<uint64_t, size_t> value_type;
+ typedef std::ptrdiff_t difference_type;
+ typedef void pointer;
+ typedef value_type reference;
+
MediumLevelILIntegerList::const_iterator pos;
bool operator==(const ListIterator& a) const { return pos == a.pos; }
bool operator!=(const ListIterator& a) const { return pos != a.pos; }
@@ -327,6 +345,12 @@ namespace BinaryNinja
{
struct ListIterator
{
+ typedef std::forward_iterator_tag iterator_category;
+ typedef Variable value_type;
+ typedef std::ptrdiff_t difference_type;
+ typedef void pointer;
+ typedef value_type reference;
+
MediumLevelILIntegerList::const_iterator pos;
bool operator==(const ListIterator& a) const { return pos == a.pos; }
bool operator!=(const ListIterator& a) const { return pos != a.pos; }
@@ -361,6 +385,12 @@ namespace BinaryNinja
{
struct ListIterator
{
+ typedef std::forward_iterator_tag iterator_category;
+ typedef SSAVariable value_type;
+ typedef std::ptrdiff_t difference_type;
+ typedef void pointer;
+ typedef value_type reference;
+
MediumLevelILIntegerList::const_iterator pos;
bool operator==(const ListIterator& a) const { return pos == a.pos; }
bool operator!=(const ListIterator& a) const { return pos != a.pos; }
@@ -397,6 +427,12 @@ namespace BinaryNinja
{
struct ListIterator
{
+ typedef std::forward_iterator_tag iterator_category;
+ typedef MediumLevelILInstruction value_type;
+ typedef std::ptrdiff_t difference_type;
+ typedef void pointer;
+ typedef value_type reference;
+
size_t instructionIndex;
MediumLevelILIntegerList::const_iterator pos;
bool operator==(const ListIterator& a) const { return pos == a.pos; }
@@ -878,6 +914,12 @@ namespace BinaryNinja
{
struct ListIterator
{
+ typedef std::forward_iterator_tag iterator_category;
+ typedef MediumLevelILOperand value_type;
+ typedef std::ptrdiff_t difference_type;
+ typedef void pointer;
+ typedef value_type reference;
+
const MediumLevelILOperandList* owner;
_STD_VECTOR<MediumLevelILOperandUsage>::const_iterator pos;
bool operator==(const ListIterator& a) const { return pos == a.pos; }