Files
SAPFOR/Sapfor/_src/DvmhRegions/DvmhRegion.h

29 lines
783 B
C
Raw Normal View History

2023-09-14 19:43:13 +03:00
#pragma once
#include "../GraphLoop/graph_loops_func.h"
#include <string>
class DvmhRegion
{
private:
std::vector<LoopGraph*> loops;
std::string fun_name;
public:
DvmhRegion() { }
DvmhRegion(LoopGraph *loopNode, const std::string &fun_name);
SgStatement* getFirstSt() const;
SgStatement* getLastSt() const;
void addLoop(LoopGraph* newLoop) { loops.push_back(newLoop); }
const std::string& getFunName() const { return fun_name; }
void setFunName(const std::string& newName) { fun_name = newName; }
const std::vector<LoopGraph*>& getLoops() const { return loops; }
std::string getFileName() const { return getFirstSt()->fileName(); }
void append(DvmhRegion& region);
int getLineForSort() const;
};