mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 11:26:11 +00:00
31 lines
565 B
C++
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
|