cutter/src/common/BasicBlockHighlighter.h
2019-02-21 22:57:26 +01:00

31 lines
565 B
C++

#ifndef BASICKBLOCKHIGHLIGHTER_H
#define BASICKBLOCKHIGHLIGHTER_H
class BasicBlockHighlighter;
#include "Cutter.h"
#include <map>
struct BasicBlock {
RVA address;
QColor color;
};
typedef std::map<RVA, BasicBlock*>::iterator BasicBlockIt;
class BasicBlockHighlighter
{
public:
BasicBlockHighlighter();
~BasicBlockHighlighter();
void highlight(RVA address, const QColor &color);
void clear(RVA address);
BasicBlock *getBasicBlock(RVA address);
private:
std::map<RVA, BasicBlock*> bbMap;
};
#endif // BASICBLOCKHIGHLIGHTER_H