====== XResultStep ====== **//Inherited from//** [[class::domain::nitem|NItem]], **//Inherited by//** NULL **//Friend class//** NULL **//Description//** XT在后处理体系里使用XResultStep封装对应于一个分析步的结果数据集,它包含一系列结果子步(XResultSubstep,XT使用XResultSubstep封装对应于一个工况或者时间步或者模态的结果集合),在这个结果步里,所有的结果参考同一个网格模型,结果数据都按照同样的顺序排序。不同的结果步可以参考不同的网格模型。 结果步与分析步一样,属性包括求解类型。 **//Members//** * int [[xresultstep#m_solutiontype|m_SolutionType]] * vector [[xresultstep#m_psubsteplist|m_pSubstepList]] * XModel * [[xresultstep#m_pmesh|m_pMesh]] **//Public interface//** * [[xresultstep#xresultstep1|XResultStep]](XMemPool * list_pool) * [[xresultstep#~xresultstep|~XResultStep]]() * void [[xresultstep#addsubstep|addSubstep]](XResultSubstep * sub) * XResultSubstep * [[xresultstep#getsubstep|getSubstep]](int index) * XResultSubstep * [[xresultstep#getlastsubstep|getLastSubstep]]() * void [[xresultstep#setmesh|setMesh]](XModel * mesh) * XModel * [[xresultstep#getmesh|getMesh]]() const * AnalysisSolutionType [[xresultstep#getsolutiontype|getSolutionType]]() const * void [[xresultstep#setsolutiontype|setSolutionType]](AnalysisSolutionType t) * XResult * [[xresultstep#getidenticalresult|getIdenticalResult]](const char * name, int subindex = -1) * int [[xresultstep#getsubcount|getSubCount]]() * void [[xresultstep#clear|clear]]() * int [[xresultstep#subindex|subIndex]](const XResult * rlt) const * ErrorCode [[xresultstep#read|read]](ResultManager * mgr,XBufferIO* io) * void [[xresultstep#write|write]](XBufferIO * io) ---- {{anchor:m_solutiontype}} **int m_SolutionType** 结果步对应的求解类型 {{anchor:m_psubsteplist}} **vector m_pSubstepList** 结果子步数组 {{anchor:m_pmesh}} **XModel * m_pMesh** 参考的网格模型 ---- {{anchor:xresultstep1}} **XResultStep(XMemPool * list_pool)** *function: 构造函数 *parameters: - [i]XMemPool * list_pool: 内存池 *return value: 无 {{anchor:~xresultstep}} **~XResultStep()** *function: 析构函数 *parameters: NULL *return value: 无 {{anchor:addsubstep}} **void addSubstep(XResultSubstep * sub)** *function: 添加结果子步 *parameters: - [i]XResultSubstep * sub: 结果子步指针 *return value: 无 {{anchor:getsubstep}} **XResultSubstep * getSubstep(int index)** *function: 获取第index个结果子步 *parameters: - [i]int index: 结果子步序号 *return value: 结果子步指针 {{anchor:getlastsubstep}} **XResultSubstep * getLastSubstep()** *function: 获取最后一个结果子步 *parameters: NULL *return value: 最后一个结果子步指针 {{anchor:setmesh}} **void setMesh(XModel * mesh)** *function: 绑定参考网格 *parameters: - [i]XModel * mesh: 参考网格模型 *return value: 无 {{anchor:getmesh}} **XModel * getMesh() const** *function: 获取结果步参考的网格模型 *parameters: NULL *return value: 参考的网格模型 {{anchor:getsolutiontype}} **AnalysisSolutionType getSolutionType() const** *function: 获取求解类型 *parameters: NULL *return value: 求解类型标识 {{anchor:setsolutiontype}} **void setSolutionType(AnalysisSolutionType t)** *function: 设置求解类型 *parameters: - [i]AnalysisSolutionType t: 求解类型标识 *return value: 无 {{anchor:getidenticalresult}} **XResult * getIdenticalResult(const char * name, int subindex = -1)** *function: 获取指定结果子步中名字为name的结果数据对象 *parameters: - [i]const char * name: 结果对象名 - [i] int subindex = -1: 结果子步序号 *return value: 指定结果子步中名字为name的结果数据对象 {{anchor:getsubcount}} **int getSubCount()** *function: 获取结果子步的数目 *parameters: NULL *return value: 结果子步的数目 {{anchor:clear}} **void clear()** *function: 清空所有结果子步 *parameters: NULL *return value: 无 {{anchor:subindex}} **int subIndex(const XResult * rlt) const** *function: 获取结果数据对象的所属子步序号 *parameters: - [i]const XResult * rlt: 结果对象指针 *return value: 结果数据对象的所属子步序号