Skip to content
Snippets Groups Projects
Commit 33bb3ac6 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

start class VectorWC

parent ecb26d2f
No related branches found
No related tags found
1 merge request!2384all "set" classes now inherit VectorWC
// ************************************************************************************************
//
// 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
...@@ -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/OwningVector.h" #include "Base/Types/VectorWC.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:
OwningVector<SampleItem> m_samples; VectorWC<SampleItem> m_samples;
int m_current_index = 0; int m_current_index = 0;
}; };
......
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