Skip to content
Snippets Groups Projects
Commit 5d504e11 authored by Matthias Puchner's avatar Matthias Puchner
Browse files

small refactor public->protected

parent 7ee7ea6a
No related branches found
No related tags found
1 merge request!65Refactor Distribution Handling
......@@ -54,10 +54,10 @@ public:
RealParameter*
registeredParameter(const std::string& pattern) const; // #baPool + rename (hierarchy!)?
// #baPool public only for Python scripts (samplebuilder.py)
protected:
//! Create and register a parameter with the given name for a double member.
RealParameter& registerParameter(const std::string& name, double* parpointer);
protected:
// #baPool + docu
RealParameter* parameter(const double* p) const;
......@@ -116,6 +116,13 @@ protected:
friend class IParametricComponentTest_fullQualifiedParameters_Test;
friend class IParametricComponentTest_removeParameter_Test;
friend class IParametricComponentTest_matchedParameters_Test;
#ifndef SWIG
// necessary for Py implementation of sampleBuilder (see libBornAgainSample.i, director
// ISampleBuilder and the resulting method in libBornAgainSample_wrap.cpp)
friend RealParameter* ISampleBuilder_registerParameter(class ISampleBuilder*,
std::string const&, int64_t);
#endif // SWIG
};
#endif // BORNAGAIN_PARAM_BASE_IPARAMETRICCOMPONENT_H
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment