IDA Domain Python API
ida_domain.TypesIterator Class Reference

Inherits object.

Public Member Functions

def __init__ (self, database)
 
def get_first (self)
 
def get_next (self)
 
"Iterator[tinfo_t]" __iter__ (self)
 

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 

Detailed Description

Iterator for user-defined types in the IDA type system.

Constructor & Destructor Documentation

◆ __init__()

def ida_domain.TypesIterator.__init__ (   self,
  database 
)
__init__(self, database) -> TypesIterator
Constructs a type iterator for the given database.

:param database: Reference to the active IDA database.

Member Function Documentation

◆ __iter__()

"Iterator[tinfo_t]" ida_domain.TypesIterator.__iter__ (   self)
__iter__(self) -> Iterator[tinfo_t]

◆ get_first()

def ida_domain.TypesIterator.get_first (   self)
get_first(self) -> BoolTinfoPair
Retrieves the first user-defined type in the database.

:return: A pair <bool, tinfo_t>. If no type is found, the bool is false.

◆ get_next()

def ida_domain.TypesIterator.get_next (   self)
get_next(self) -> BoolTinfoPair
Retrieves the next user-defined type in the database.

:return: A pair <bool, tinfo_t>. If no more types, the bool is false.

Property Documentation

◆ thisown

ida_domain.TypesIterator.thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static