winIDEA SDK
|
This immutable class contains information about function.
#include <CDataController.h>
Public Member Functions | |
CFunction (const std::string &name, const std::string &qualifiedName, const std::string &scope, const std::string &returnType, int moduleIndex, const VariableVector ¶meters, const VariableVector &locals, iconnect::AddressVector &callsTo, iconnect::AddressVector &callsFrom) | |
Instantiates object. More... | |
std::string | getName () const |
Returns function name without any qualifiers like scope or parameters. | |
std::string | getQualifiedName () const |
Returns function name. More... | |
std::string | getScope () const |
Returns function scope, for example class name. | |
std::string | getReturnType () const |
Returns function's return type. | |
int | getModuleIndex () const |
Returns index of the source file, where this function is implemented. More... | |
VariableVector | getParameters () const |
Returns function parameters. | |
VariableVector | getLocalVars () const |
Returns function local variables (including parameters). | |
void | getCallsToFunction (iconnect::AddressVector &functionAddresses) |
Returns addresses, where calls to this function are located. More... | |
void | getCallsFromFunction (iconnect::AddressVector &functionAddresses) |
Returns addresses of functions, which are called from this function. More... | |
|
inline |
Instantiates object.
Constructor is not intended to be used by clients.
|
inline |
Returns addresses of functions, which are called from this function.
If some function is called from more than one location in this function, then its address appears more than once in functionAddresses
.
Python example: call_hierarchy.py
|
inline |
Returns addresses, where calls to this function are located.
Python example: call_hierarchy.py
|
inline |
Returns index of the source file, where this function is implemented.
The index can be used to get module from the list of modules returned by method CDataController::getModules().
|
inline |
Returns function name.
This name may not be fully qualified, but depends on setting in winiDEA (for example just enough decorated to be unique).