IDA SDK
|
Visit all subtypes of a type. Derive your visitor from this class and use apply_to()
Public Attributes | |
int | state |
tinfo visitor states | |
Public Member Functions | |
tinfo_visitor_t (int s=0) | |
virtual int idaapi | visit_type (type_mods_t *out, const tinfo_t &tif, const char *name, const char *cmt)=0 |
Visit a subtype. More... | |
void | prune_now (void) |
To refuse to visit children of the current type, use this: | |
int | apply_to (const tinfo_t &tif, type_mods_t *out=NULL, const char *name=NULL, const char *cmt=NULL) |
Call this function to initiate the traversal. | |
|
pure virtual |
Visit a subtype.
this function must be implemented in the derived class. it may optionally fill out with the new type info. this can be used to modify types (in this case the 'out' argument of apply_to() may not be NULL) return 0 to continue the traversal. return !=0 to stop the traversal.