#include "rose.h"#include "SgNodeUtil.h"#include "AsmToSourceMapper.h"#include <iostream>#include <cassert>#include <string>Include dependency graph for SgNodeUtil.cpp:

Go to the source code of this file.
Functions | |
| SgFile * | getSgFile (SgNode *node) |
| bool | isBinaryNode (SgNode *node) |
| bool | isSourceNode (SgNode *node) |
| template<typename LinkType> | |
| static std::vector< SgNode * > | getLinkedNodes (SgNode *node) |
| SgNodeVector | getLinkedBinaryNodes (SgNode *node) |
| SgNodeVector | getLinkedSourceNodes (SgNode *node) |
| bool | isAncestor (SgNode *parent, SgNode *child) |
| void | deleteFileFromProject (SgFile *file, SgProject *proj) |
| bool | findNextInstruction (SgNode *node, rose_addr_t &out) |
| SgProject * | getProjectOf (SgNode *node) |
| void deleteFileFromProject | ( | SgFile * | file, | |
| SgProject * | proj | |||
| ) |
Removes an SgFile from a project and deletes the file file may be NULL, then nothing is done
Definition at line 92 of file SgNodeUtil.cpp.
Referenced by BinaryFileNode::rebuild(), SourceFileNode::rebuild(), BinaryFileNode::~BinaryFileNode(), and SourceFileNode::~SourceFileNode().
Here is the caller graph for this function:

| bool findNextInstruction | ( | SgNode * | node, | |
| rose_addr_t & | out | |||
| ) |
tries to find the target of a call or jmp if successful it returns true, and the address is written to out
Definition at line 107 of file SgNodeUtil.cpp.
Referenced by AsmView::addArrows().
Here is the caller graph for this function:

| SgNodeVector getLinkedBinaryNodes | ( | SgNode * | node | ) |
| static std::vector<SgNode *> getLinkedNodes | ( | SgNode * | node | ) | [static] |
Definition at line 42 of file SgNodeUtil.cpp.
| SgNodeVector getLinkedSourceNodes | ( | SgNode * | node | ) |
Definition at line 73 of file SgNodeUtil.cpp.
| SgProject* getProjectOf | ( | SgNode * | node | ) |
Definition at line 138 of file SgNodeUtil.cpp.
Referenced by CallGraphWidget::updateGraph(), and AsmView::updateModel().
Here is the caller graph for this function:

| SgFile* getSgFile | ( | SgNode * | node | ) |
Definition at line 13 of file SgNodeUtil.cpp.
Referenced by SrcBinView::dropEvent(), isBinaryNode(), and isSourceNode().
Here is the caller graph for this function:

| bool isAncestor | ( | SgNode * | parent, | |
| SgNode * | child | |||
| ) |
| bool isBinaryNode | ( | SgNode * | node | ) |
| bool isSourceNode | ( | SgNode * | node | ) |
Definition at line 36 of file SgNodeUtil.cpp.
Referenced by AsmInstructionsBar::setNode(), and AsmInstructionsBar::setRoot().
Here is the call graph for this function:

1.4.7