Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
cebe84b6
Commit
cebe84b6
authored
4 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
Core add SampleBuilderEngine/FixedBuilder
parent
c5ef53ea
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Core/SampleBuilderEngine/FixedBuilder.cpp
+26
-0
26 additions, 0 deletions
Core/SampleBuilderEngine/FixedBuilder.cpp
Core/SampleBuilderEngine/FixedBuilder.h
+35
-0
35 additions, 0 deletions
Core/SampleBuilderEngine/FixedBuilder.h
with
61 additions
and
0 deletions
Core/SampleBuilderEngine/FixedBuilder.cpp
0 → 100644
+
26
−
0
View file @
cebe84b6
// ************************************************************************** //
//
// BornAgain: simulate and fit scattering at grazing incidence
//
//! @file Core/SampleBuilderEngine/FixedBuilder.cpp
//! @brief Implements class FixedBuilder.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
//! @copyright Forschungszentrum Jülich GmbH 2020
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
//
// ************************************************************************** //
#include
"Core/SampleBuilderEngine/FixedBuilder.h"
#include
"Core/Multilayer/MultiLayer.h"
FixedBuilder
::
FixedBuilder
(
const
MultiLayer
&
sample
)
:
m_sample
(
sample
.
clone
())
{
}
MultiLayer
*
FixedBuilder
::
buildSample
()
const
{
return
m_sample
->
clone
();
}
This diff is collapsed.
Click to expand it.
Core/SampleBuilderEngine/FixedBuilder.h
0 → 100644
+
35
−
0
View file @
cebe84b6
// ************************************************************************** //
//
// BornAgain: simulate and fit scattering at grazing incidence
//
//! @file Core/SampleBuilderEngine/FixedBuilder.h
//! @brief Defines class FixedBuilder.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
//! @copyright Forschungszentrum Jülich GmbH 2020
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
//
// ************************************************************************** //
#ifndef BORNAGAIN_CORE_SAMPLEBUILDERENGINE_FIXEDBUILDER_H
#define BORNAGAIN_CORE_SAMPLEBUILDERENGINE_FIXEDBUILDER_H
#include
"Core/SampleBuilderEngine/ISampleBuilder.h"
#include
<memory>
class
MultiLayer
;
//! A trivial sample builder class that builds a fixed sample.
class
FixedBuilder
:
public
ISampleBuilder
{
public:
FixedBuilder
()
=
delete
;
FixedBuilder
(
const
MultiLayer
&
);
MultiLayer
*
buildSample
()
const
;
private:
std
::
unique_ptr
<
const
MultiLayer
>
m_sample
;
};
#endif // BORNAGAIN_CORE_SAMPLEBUILDERENGINE_FIXEDBUILDER_H
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment