Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
senf
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wiback
senf
Commits
19347354
Commit
19347354
authored
15 years ago
by
g0dil
Browse files
Options
Downloads
Patches
Plain Diff
Utils/Logger: Remove unneeded implemenatation detail (SelectName)
parent
296d7075
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
Utils/Logger/StreamRegistry.cci
+4
-9
4 additions, 9 deletions
Utils/Logger/StreamRegistry.cci
Utils/Logger/StreamRegistry.hh
+3
-7
3 additions, 7 deletions
Utils/Logger/StreamRegistry.hh
with
7 additions
and
16 deletions
Utils/Logger/StreamRegistry.cci
+
4
−
9
View file @
19347354
...
...
@@ -34,24 +34,19 @@
///////////////////////////////////////////////////////////////////////////
// senf::log::StreamRegistry
prefix_ std::string const &
senf::log::StreamRegistry::SelectName::operator()(Registry::value_type const & v)
const
{
return v.first;
}
prefix_ senf::log::StreamRegistry::StreamRegistry()
{}
prefix_ senf::log::StreamRegistry::iterator senf::log::StreamRegistry::begin()
{
return boost::make_transform_iterator(registry_.begin(), SelectName());
return boost::make_transform_iterator(registry_.begin(),
::__gnu_cxx::select1st<Registry::value_type>());
}
prefix_ senf::log::StreamRegistry::iterator senf::log::StreamRegistry::end()
{
return boost::make_transform_iterator(registry_.end(), SelectName());
return boost::make_transform_iterator(registry_.end(),
::__gnu_cxx::select1st<Registry::value_type>());
}
prefix_ void senf::log::StreamRegistry::registerStream(detail::StreamBase const & stream)
...
...
This diff is collapsed.
Click to expand it.
Utils/Logger/StreamRegistry.hh
+
3
−
7
View file @
19347354
...
...
@@ -29,6 +29,7 @@
// Custom includes
#include
<map>
#include
<functional>
#include
<ext/functional>
#include
<boost/iterator/transform_iterator.hpp>
#include
"Levels.hh"
#include
"../singleton.hh"
...
...
@@ -55,14 +56,9 @@ namespace log {
{
typedef
std
::
map
<
std
::
string
,
detail
::
StreamBase
const
*>
Registry
;
struct
SelectName
{
typedef
std
::
string
result_type
;
std
::
string
const
&
operator
()(
Registry
::
value_type
const
&
v
)
const
;
};
public:
typedef
boost
::
transform_iterator
<
SelectName
,
Registry
::
const_iterator
>
iterator
;
typedef
boost
::
transform_iterator
<
::
__gnu_cxx
::
select1st
<
Registry
::
value_type
>
,
Registry
::
const_iterator
>
iterator
;
# ifdef DOXYGEN
// Hmm ... doxygen does not understand 'using declarations' ...
...
...
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