macro processor: remove unnecessary function
parent
f2c93d377f
commit
b041cb4fba
|
@ -565,12 +565,7 @@ Array::eval()
|
||||||
increment = nullptr;
|
increment = nullptr;
|
||||||
range2 = nullptr;
|
range2 = nullptr;
|
||||||
}
|
}
|
||||||
return evalArray();
|
|
||||||
}
|
|
||||||
|
|
||||||
BaseTypePtr
|
|
||||||
Array::evalArray()
|
|
||||||
{
|
|
||||||
vector<ExpressionPtr> retval;
|
vector<ExpressionPtr> retval;
|
||||||
for (const auto & it : arr)
|
for (const auto & it : arr)
|
||||||
retval.emplace_back(it->eval());
|
retval.emplace_back(it->eval());
|
||||||
|
|
|
@ -346,8 +346,6 @@ namespace macro
|
||||||
string to_string() const noexcept override;
|
string to_string() const noexcept override;
|
||||||
void print(ostream &output, bool matlab_output = false) const noexcept override;
|
void print(ostream &output, bool matlab_output = false) const noexcept override;
|
||||||
BaseTypePtr eval() override;
|
BaseTypePtr eval() override;
|
||||||
private:
|
|
||||||
BaseTypePtr evalArray();
|
|
||||||
public:
|
public:
|
||||||
inline size_t size() const { return arr.size(); }
|
inline size_t size() const { return arr.size(); }
|
||||||
inline vector<ExpressionPtr> getValue() const { return arr; }
|
inline vector<ExpressionPtr> getValue() const { return arr; }
|
||||||
|
|
Loading…
Reference in New Issue