Class to enumerate all function tails sorted by addresses.
Enumeration is started with main(), first(), or last(). If first() is used, the function entry chunk will be excluded from the enumeration. Otherwise it will be included in the enumeration (for main() and last()). The loop may continue until the next() or prev() function returns false. These functions return false when the enumeration is over. The tail chunks are always sorted by their addresses.
Sample code:
for (
bool ok=fti.first();
ok;
ok=fti.next() )
{
fti.chunk(&a);
....
function_tail_iterator_t()
Definition funcs.hpp:1846
bool ok
Definition kernwin.hpp:7410
Base class for an range.
Definition range.hpp:35
If the 'ea' parameter is used in the constructor, then the iterator is positioned at the chunk containing the specified 'ea'. Otherwise it is positioned at the function entry chunk. If 'func_ea' is specified as BADADDR then the set() function will fail, but it is still possible to use the class. In this case the iteration will be limited by the segment boundaries. The function main chunk is locked during the iteration. It is also possible to enumerate one single arbitrary range using set_range() This function is mainly designed to be used from function_item_iterator_t. Iterator for function tail chunks using ea_t-based API.