BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ParameterPattern.cpp
Go to the documentation of this file.
1
// ************************************************************************** //
2
//
3
// BornAgain: simulate and fit scattering at grazing incidence
4
//
5
//! @file Param/Varia/ParameterPattern.cpp
6
//! @brief Implements class ParameterPattern
7
//!
8
//! @homepage http://www.bornagainproject.org
9
//! @license GNU General Public License v3 or higher (see COPYING)
10
//! @copyright Forschungszentrum Jülich GmbH 2018
11
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12
//
13
// ************************************************************************** //
14
15
#include "
Param/Varia/ParameterPattern.h
"
16
17
ParameterPattern
&
ParameterPattern::beginsWith
(std::string start_type)
18
{
19
m_pattern
= start_type;
20
return
*
this
;
21
}
22
23
ParameterPattern
&
ParameterPattern::add
(std::string object_type)
24
{
25
m_pattern
=
m_pattern
+
"/"
+ object_type;
26
return
*
this
;
27
}
ParameterPattern.h
Defines class ParameterPattern.
ParameterPattern
Helper class for constructing parameter patterns.
Definition:
ParameterPattern.h:24
ParameterPattern::m_pattern
std::string m_pattern
Definition:
ParameterPattern.h:35
ParameterPattern::beginsWith
ParameterPattern & beginsWith(std::string start_type)
Definition:
ParameterPattern.cpp:17
ParameterPattern::add
ParameterPattern & add(std::string object_type)
Definition:
ParameterPattern.cpp:23
Param
Varia
ParameterPattern.cpp
Generated by
1.9.1