Skip to content
Snippets Groups Projects
Commit a8c3cd16 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm INode::m_NP

parent a35a5bb8
No related branches found
No related tags found
2 merge requests!294renamed IParametric -> INamed, and simplify,!293rm INode::m_NP; clang-format
...@@ -24,14 +24,13 @@ NodeMeta nodeMetaUnion(const std::vector<ParaMeta>& base, const NodeMeta& other) ...@@ -24,14 +24,13 @@ NodeMeta nodeMetaUnion(const std::vector<ParaMeta>& base, const NodeMeta& other)
return {other.className, other.tooltip, BaseUtils::algo::concat(base, other.paraMeta)}; return {other.className, other.tooltip, BaseUtils::algo::concat(base, other.paraMeta)};
} }
INode::INode(const NodeMeta& meta, const std::vector<double>& PValues) INode::INode(const NodeMeta& meta, const std::vector<double>& PValues)
: /*m_tooltip(meta.tooltip),*/ : m_P(PValues)
m_NP(meta.paraMeta.size())
{ {
m_P.resize(m_NP);
setName(meta.className); setName(meta.className);
for (size_t i = 0; i < m_NP; ++i) {
m_P[i] = PValues[i]; for (size_t i = 0; i < meta.paraMeta.size(); ++i) {
const ParaMeta& pm = meta.paraMeta[i]; const ParaMeta& pm = meta.paraMeta[i];
RealLimits limits = RealLimits::limitless(); RealLimits limits = RealLimits::limitless();
......
...@@ -47,7 +47,7 @@ NodeMeta nodeMetaUnion(const std::vector<ParaMeta>& base, const NodeMeta& other) ...@@ -47,7 +47,7 @@ NodeMeta nodeMetaUnion(const std::vector<ParaMeta>& base, const NodeMeta& other)
class INode : public IParametric { class INode : public IParametric {
public: public:
INode() : m_NP{0} {} INode() {}
INode(const NodeMeta& meta, const std::vector<double>& PValues); INode(const NodeMeta& meta, const std::vector<double>& PValues);
virtual ~INode() {} virtual ~INode() {}
...@@ -78,7 +78,6 @@ private: ...@@ -78,7 +78,6 @@ private:
// const std::string m_tooltip; // const std::string m_tooltip;
protected: protected:
const size_t m_NP;
std::vector<double> m_P; std::vector<double> m_P;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment