IDA C++ SDK 9.2
Loading...
Searching...
No Matches
tinfo_visitor_t Struct Referenceabstract

Visit all subtypes of a type. Derive your visitor from this class and use apply_to() More...

#include <typeinf.hpp>

Public Member Functions

 tinfo_visitor_t (int s=0)
virtual ~tinfo_visitor_t ()
virtual int idaapi visit_type (type_mods_t *out, const tinfo_t &tif, const char *name, const char *cmt)=0
 Visit a subtype.
void prune_now ()
 To refuse to visit children of the current type, use this:
int apply_to (const tinfo_t &tif, type_mods_t *out=nullptr, const char *name=nullptr, const char *cmt=nullptr)
 Call this function to initiate the traversal.

Public Attributes

int state
 tinfo visitor states
int level

Detailed Description

Visit all subtypes of a type. Derive your visitor from this class and use apply_to()

Constructor & Destructor Documentation

◆ tinfo_visitor_t()

tinfo_visitor_t::tinfo_visitor_t ( int s = 0)
inline

◆ ~tinfo_visitor_t()

virtual tinfo_visitor_t::~tinfo_visitor_t ( )
inlinevirtual

Member Function Documentation

◆ visit_type()

virtual int idaapi tinfo_visitor_t::visit_type ( type_mods_t * out,
const tinfo_t & tif,
const char * name,
const char * cmt )
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 nullptr) return 0 to continue the traversal. return !=0 to stop the traversal.

◆ prune_now()

void tinfo_visitor_t::prune_now ( )
inline

To refuse to visit children of the current type, use this:

◆ apply_to()

int tinfo_visitor_t::apply_to ( const tinfo_t & tif,
type_mods_t * out = nullptr,
const char * name = nullptr,
const char * cmt = nullptr )
inline

Call this function to initiate the traversal.

Member Data Documentation

◆ state

int tinfo_visitor_t::state

◆ level

int tinfo_visitor_t::level

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