加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nsmgraphdata.cpp 919 Bytes
一键复制 编辑 原始数据 按行查看 历史
ZzqiZQute 提交于 2018-06-25 21:36 . 20186252136
#include "nsmgraphdata.h"
#include "common.h"
NSMGraphData::NSMGraphData(int phase)
{
this->phase=phase;
vertexDatas=new QList<NSMVertexData*>();
baseMatrix=new BaseMatrix();
inVector=new BaseVector();
outVector=new BaseVector();
}
NSMGraphData::~NSMGraphData()
{
delete baseMatrix;
vertexDatas->clear();
delete vertexDatas;
delete inVector;
delete outVector;
}
int NSMGraphData::getPhase() const
{
return phase;
}
void NSMGraphData::setPhase(int value)
{
phase = value;
}
QList<NSMVertexData *> *NSMGraphData::getVertexDatas() const
{
return vertexDatas;
}
BaseMatrix *NSMGraphData::getBaseMatrix() const
{
return baseMatrix;
}
void NSMGraphData::setBaseMatrix(BaseMatrix *value)
{
baseMatrix = value;
}
BaseVector *NSMGraphData::getInVector() const
{
return inVector;
}
BaseVector *NSMGraphData::getOutVector() const
{
return outVector;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化