Files
DRAMSys/extensions/apps/traceAnalyzer/businessObjects/phases/dependencyinfos.h

46 lines
736 B
C++

/*
* Copyright (c) 2025 Fraunhofer IESE. All rights reserved.
*
* Authors:
* Iron Prando da Silva
*/
#pragma once
#include <vector>
#include <QString>
struct DependencyInfo
{
QString id;
float value;
};
class DependencyInfos
{
public:
enum Type
{
DependencyType,
TimeDependency,
DelayedPhase,
DependencyPhase
};
public:
DependencyInfos(Type);
DependencyInfos();
~DependencyInfos();
void setType(Type type) { mType = type; }
void addInfo(DependencyInfo);
const std::vector<DependencyInfo>& getInfos() const { return mInfos; }
size_t size() const { return mInfos.size(); }
private:
Type mType;
std::vector<DependencyInfo> mInfos;
};