Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Frida
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
Container Registry
Model registry
Operate
Environments
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
Coenen, Joachim
Frida
Commits
c0f205c6
Commit
c0f205c6
authored
9 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
Replace IterateD,C by IterateO(selD,C)
parent
d30aa298
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
pub/lib/fsel.cpp
+17
-0
17 additions, 0 deletions
pub/lib/fsel.cpp
pub/lib/fsel.hpp
+2
-0
2 additions, 0 deletions
pub/lib/fsel.hpp
with
19 additions
and
0 deletions
pub/lib/fsel.cpp
+
17
−
0
View file @
c0f205c6
...
...
@@ -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
()
{
...
...
This diff is collapsed.
Click to expand it.
pub/lib/fsel.hpp
+
2
−
0
View file @
c0f205c6
...
...
@@ -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
();
...
...
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