IDAPython 9.0
Loading...
Searching...
No Matches
NearestName Class Reference

Utility class to help find the nearest name in a given ea/name dictionary.

Inheritance diagram for NearestName:

Public Member Functions

 __init__ (self, ea_names)
 
 update (self, ea_names)
 Updates the ea/names map.
 
 find (self, ea)
 Returns a tupple (ea, name, pos) that is the nearest to the passed ea If no name is matched then None is returned.
 
 __iter__ (self)
 
 __getitem__ (self, index)
 Returns the tupple (ea, name, index)
 

Protected Member Functions

 _get_item (self, index)
 

Protected Attributes

 _names = ea_names
 
 _addrs = list(ea_names.keys())
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
ea_names )

Member Function Documentation

◆ __getitem__()

__getitem__ ( self,
index )

◆ __iter__()

__iter__ ( self)

◆ _get_item()

_get_item ( self,
index )
protected

◆ find()

find ( self,
ea )

◆ update()

update ( self,
ea_names )

Member Data Documentation

◆ _addrs

_addrs = list(ea_names.keys())
protected

◆ _names

_names = ea_names
protected

The documentation for this class was generated from the following file: