Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp-statistics
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Humanoid Path Planner
hpp-statistics
Commits
e1419da5
Commit
e1419da5
authored
9 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Move definition from bin.cc to bin.hh
parent
f5120e52
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
include/hpp/statistics/bin.hh
+8
-2
8 additions, 2 deletions
include/hpp/statistics/bin.hh
src/bin.cc
+0
-31
0 additions, 31 deletions
src/bin.cc
with
8 additions
and
33 deletions
include/hpp/statistics/bin.hh
+
8
−
2
View file @
e1419da5
...
@@ -56,7 +56,10 @@ namespace hpp {
...
@@ -56,7 +56,10 @@ namespace hpp {
}
}
/// Print the bin.
/// Print the bin.
virtual
std
::
ostream
&
print
(
std
::
ostream
&
os
)
const
;
virtual
std
::
ostream
&
print
(
std
::
ostream
&
os
)
const
{
return
printValue
(
os
<<
freq
()
<<
" - "
);
}
/// Print the inner value of the bin.
/// Print the inner value of the bin.
virtual
std
::
ostream
&
printValue
(
std
::
ostream
&
os
)
const
=
0
;
virtual
std
::
ostream
&
printValue
(
std
::
ostream
&
os
)
const
=
0
;
...
@@ -70,7 +73,10 @@ namespace hpp {
...
@@ -70,7 +73,10 @@ namespace hpp {
size_t
freq_
;
size_t
freq_
;
};
};
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
hpp
::
statistics
::
Bin
&
b
);
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
hpp
::
statistics
::
Bin
&
b
)
{
return
b
.
print
(
os
);
}
/// Template class to do statistics.
/// Template class to do statistics.
/// You should derivate class Bin and construct a class
/// You should derivate class Bin and construct a class
...
...
This diff is collapsed.
Click to expand it.
src/bin.cc
deleted
100644 → 0
+
0
−
31
View file @
f5120e52
// Copyright (c) 2014, LAAS-CNRS
// Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
//
// This file is part of hpp-statistics.
// hpp-statistics is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation, either version
// 3 of the License, or (at your option) any later version.
//
// hpp-statistics is distributed in the hope that it will be
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Lesser Public License for more details. You should have
// received a copy of the GNU Lesser General Public License along with
// hpp-statistics. If not, see <http://www.gnu.org/licenses/>.
#include
"hpp/statistics/bin.hh"
namespace
hpp
{
namespace
statistics
{
std
::
ostream
&
Bin
::
print
(
std
::
ostream
&
os
)
const
{
return
printValue
(
os
<<
freq
()
<<
" - "
);
}
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
hpp
::
statistics
::
Bin
&
b
)
{
return
b
.
print
(
os
);
}
}
// namespace statistics
}
// namespace hpp
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