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
33bb3ac6
Commit
33bb3ac6
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
start class VectorWC
parent
ecb26d2f
No related branches found
No related tags found
1 merge request
!2384
all "set" classes now inherit VectorWC
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Base/Types/VectorWC.h
+29
-0
29 additions, 0 deletions
Base/Types/VectorWC.h
GUI/Model/Sample/SamplesSet.h
+2
-2
2 additions, 2 deletions
GUI/Model/Sample/SamplesSet.h
with
31 additions
and
2 deletions
Base/Types/VectorWC.h
0 → 100644
+
29
−
0
View file @
33bb3ac6
// ************************************************************************************************
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file Base/Types/VectorWC.h
//! @brief Defines and implements templated class VectorWC.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
//! @copyright Forschungszentrum Jülich GmbH 2018
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
//
// ************************************************************************************************
#ifdef SWIG
#error no need to expose this header to Swig
#endif // SWIG
#ifndef BORNAGAIN_BASE_TYPES_VECTORWC_H
#define BORNAGAIN_BASE_TYPES_VECTORWC_H
#include
"Base/Types/OwningVector.h"
//! An OwningVector with a current index.
template
<
class
T
>
class
VectorWC
:
public
OwningVector
<
T
>
{
public:
};
#endif // BORNAGAIN_BASE_TYPES_VECTORWC_H
This diff is collapsed.
Click to expand it.
GUI/Model/Sample/SamplesSet.h
+
2
−
2
View file @
33bb3ac6
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
#ifndef BORNAGAIN_GUI_MODEL_SAMPLE_SAMPLESSET_H
#ifndef BORNAGAIN_GUI_MODEL_SAMPLE_SAMPLESSET_H
#define BORNAGAIN_GUI_MODEL_SAMPLE_SAMPLESSET_H
#define BORNAGAIN_GUI_MODEL_SAMPLE_SAMPLESSET_H
#include
"Base/Types/
Owning
Vector.h"
#include
"Base/Types/Vector
WC
.h"
#include
<QXmlStreamReader>
#include
<QXmlStreamReader>
class
SampleItem
;
class
SampleItem
;
...
@@ -41,7 +41,7 @@ public:
...
@@ -41,7 +41,7 @@ public:
void
setCurrentIndex
(
int
newIndex
)
{
m_current_index
=
newIndex
;
}
void
setCurrentIndex
(
int
newIndex
)
{
m_current_index
=
newIndex
;
}
private
:
private
:
Owning
Vector
<
SampleItem
>
m_samples
;
Vector
WC
<
SampleItem
>
m_samples
;
int
m_current_index
=
0
;
int
m_current_index
=
0
;
};
};
...
...
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