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

Replace IterateD,C by IterateO(selD,C)

parent d30aa298
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@
#include "defs.hpp"
#include <cmath>
#include <algorithm>
#include "olf.hpp"
#include "ptr.hpp"
......@@ -29,6 +30,22 @@ namespace NSel {
return FSel;
}
//! Returns list of data files in current selection
const vector<int> selD()
{
vector<int> ret;
copy_if( FSel.begin(), FSel.end(), ret.begin(), [](int k){ return P2D(NOlm::mem_get(k)); } );
return ret;
}
//! Returns list of curve files in current selection
const vector<int> selC()
{
vector<int> ret;
copy_if( FSel.begin(), FSel.end(), ret.begin(), [](int k){ return P2C(NOlm::mem_get(k)); } );
return ret;
}
//! First selected file.
const ROlo sel_first()
{
......
......@@ -13,6 +13,8 @@ namespace NSel {
// Read file selection:
const vector<int>& sel();
const vector<int> selD();
const vector<int> selC();
const ROlo sel_first();
const int nJ_max();
......
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