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
e6502044
Commit
e6502044
authored
4 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
IAxis: sort member fcts; rm triv comments
parent
27a00c30
No related branches found
No related tags found
1 merge request
!53
copy edit in axis and converter context
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Base/Axis/IAxis.h
+13
-17
13 additions, 17 deletions
Base/Axis/IAxis.h
with
13 additions
and
17 deletions
Base/Axis/IAxis.h
+
13
−
17
View file @
e6502044
...
...
@@ -19,34 +19,21 @@
#include
"Base/Axis/Bin.h"
#include
<vector>
//!
Interface
for one-dimensional axes.
//!
Abstract base class
for one-dimensional axes.
//! @ingroup tools_internal
class
IAxis
{
public:
//! constructors
IAxis
(
const
std
::
string
&
name
)
:
m_name
(
name
)
{}
//! clone function
virtual
IAxis
*
clone
()
const
=
0
;
//! destructor
virtual
~
IAxis
()
{}
//! retrieve the number of bins
virtual
size_t
size
()
const
=
0
;
//! retrieve the label of the axis
std
::
string
getName
()
const
{
return
m_name
;
}
virtual
IAxis
*
clone
()
const
=
0
;
//! Sets the axis label
void
setName
(
std
::
string
name
)
{
m_name
=
name
;
}
//! indexed accessor retrieves a sample
virtual
double
operator
[](
size_t
index
)
const
=
0
;
//! retrieve a 1d bin for the given index
virtual
Bin1D
bin
(
size_t
index
)
const
=
0
;
//! Returns the number of bins
virtual
size_t
size
()
const
=
0
;
//! Returns value of first point of axis
virtual
double
lowerBound
()
const
=
0
;
...
...
@@ -60,6 +47,15 @@ public:
//! Returns midpoint of axis
double
center
()
const
;
//! Returns the label of the axis
std
::
string
getName
()
const
{
return
m_name
;
}
//! indexed accessor retrieves a sample
virtual
double
operator
[](
size_t
index
)
const
=
0
;
//! retrieve a 1d bin for the given index
virtual
Bin1D
bin
(
size_t
index
)
const
=
0
;
virtual
double
binCenter
(
size_t
index
)
const
=
0
;
//! find bin index which is best match for given value
...
...
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