Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
cdo
Commits
23270897
Commit
23270897
authored
2 years ago
by
Volker Neff
Browse files
Options
Downloads
Patches
Plain Diff
add fucntions
parent
fa17a8b4
No related branches found
Branches containing commit
No related tags found
1 merge request
!6
Draft: [WIP] New Field Architekture
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/field.h
+5
-0
5 additions, 0 deletions
src/field.h
src/field_t.inl
+12
-0
12 additions, 0 deletions
src/field_t.inl
with
17 additions
and
0 deletions
src/field.h
+
5
−
0
View file @
23270897
...
...
@@ -191,6 +191,11 @@ public:
void
setMissValue
(
double
value
);
double
getMissValue
()
const
;
bool
empty
()
const
;
size_t
getNumMiss
()
const
;
void
setNumMiss
(
const
size_t
value
);
};
/************************************************
...
...
This diff is collapsed.
Click to expand it.
src/field_t.inl
+
12
−
0
View file @
23270897
...
...
@@ -102,4 +102,16 @@ inline double Field_t::getMissValue() const {
return field_operation([](LambdaField_T_ field){return field.getMissValueDouble();}, *this);
}
inline bool Field_t::empty() const {
return field_operation([](LambdaField_T_ field){return field.empty();}, *this);
}
inline size_t Field_t::getNumMiss() const {
return field_operation([](LambdaField_T_ field){return field.nmiss;}, *this);
}
inline void Field_t::setNumMiss(const size_t value) {
return field_operation([](LambdaField_T_ field, const size_t value) {field.nmiss = value;}, *this, value);
}
#endif // FIELD_t_INL
\ No newline at end of file
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