🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
BlockDerivative.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "AstCore/FuncBlock.hpp"
25
26AST_NAMESPACE_BEGIN
27
28class SimTime;
29
45class AST_CORE_API BlockDerivative: public FuncBlock
46{
47public:
49 ~BlockDerivative() override = default;
50
52 const std::vector<DataPort>& getDerivativePorts() const { return derivativePorts_; }
53 std::vector<DataPort>& getDerivativePorts() { return derivativePorts_; }
54
55protected:
56 std::vector<DataPort> derivativePorts_; // 导数端口
57};
58
59AST_NAMESPACE_END
导数函数块
定义 BlockDerivative.hpp:46
~BlockDerivative() override=default
析构函数
const std::vector< DataPort > & getDerivativePorts() const
获取导数端口
定义 BlockDerivative.hpp:52
函数块/功能块
定义 FuncBlock.hpp:41