Skip to content
Snippets Groups Projects
Commit a9471b22 authored by AlQuemist's avatar AlQuemist
Browse files

Apply clang format

parent 71dfaf35
No related branches found
No related tags found
1 merge request!2738Hide vector of pointers and related methods from the SWIG Python API
...@@ -51,17 +51,32 @@ public: ...@@ -51,17 +51,32 @@ public:
#endif // SWIG #endif // SWIG
//! Returns the parameter definitions, to be hard-coded in each leaf class. //! Returns the parameter definitions, to be hard-coded in each leaf class.
virtual std::vector<ParaMeta> parDefs() const { return {}; } virtual std::vector<ParaMeta> parDefs() const
{
return {};
}
const std::vector<double>& pars() const { return m_P; } const std::vector<double>& pars() const
{
return m_P;
}
//! Returns number of actual parameters. //! Returns number of actual parameters.
size_t nPars() const { return m_P.size(); } size_t nPars() const
{
return m_P.size();
}
//! Returns value of specified parameter. //! Returns value of specified parameter.
double parVal(size_t i) const { return m_P.at(i); } double parVal(size_t i) const
{
virtual std::string validate() const { return ""; } return m_P.at(i);
}
virtual std::string validate() const
{
return "";
}
void validateOrThrow() const; void validateOrThrow() const;
protected: protected:
......
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