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
83d33cfa
Commit
83d33cfa
authored
16 years ago
by
g0dil
Browse files
Options
Downloads
Patches
Plain Diff
I'm too tired ??
parent
13fcd5f8
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Utils/Logger/Target.cc
+1
-1
1 addition, 1 deletion
Utils/Logger/Target.cc
Utils/Logger/Target.cci
+4
-4
4 additions, 4 deletions
Utils/Logger/Target.cci
Utils/Logger/Target.hh
+1
-1
1 addition, 1 deletion
Utils/Logger/Target.hh
Utils/Logger/Target.test.cc
+4
-2
4 additions, 2 deletions
Utils/Logger/Target.test.cc
with
10 additions
and
8 deletions
Utils/Logger/Target.cc
+
1
−
1
View file @
83d33cfa
...
...
@@ -120,7 +120,7 @@ prefix_ void senf::log::Target::clear()
RIB
::
const_iterator
const
i_end
(
old
.
end
());
for
(;
i
!=
i_end
;
++
i
)
if
(
i
->
action_
==
ACCEPT
)
updateRoutingCache
(
i
->
stream_
,
i
->
area_
)
updateRoutingCache
(
i
->
stream_
,
i
->
area_
)
;
}
////////////////////////////////////////
...
...
This diff is collapsed.
Click to expand it.
Utils/Logger/Target.cci
+
4
−
4
View file @
83d33cfa
...
...
@@ -56,14 +56,14 @@ prefix_ senf::log::Target::iterator senf::log::Target::end()
return rib_.end();
}
prefix_ RoutingEntry const & senf::log::Target::operator[](size_type i)
size_type size()
const
prefix_
senf::log::Target::
RoutingEntry const & senf::log::Target::operator[](size_type i)
const
{
return rib_[i];
}
prefix_
RoutingEntry const & senf::log::Target::operator[](size_type i
)
size_type size()
const
prefix_
senf::log::Target::size_type senf::log::Target::size(
)
const
{
return rib_.size();
}
...
...
This diff is collapsed.
Click to expand it.
Utils/Logger/Target.hh
+
1
−
1
View file @
83d33cfa
...
...
@@ -333,7 +333,7 @@ namespace log {
iterator
begin
()
const
;
///< Iterator to beginning of routing table
iterator
end
()
const
;
///< Iterator past the end of routing table
RoutingEntry
const
&
operator
[](
size_type
i
)
///< Access routing entry
RoutingEntry
const
&
operator
[](
size_type
i
)
const
;
///< Access routing entry
size_type
size
()
const
;
///< Number of routing table entries
bool
empty
()
const
;
///< \c true, if routing table empty, \c false otherwise
...
...
This diff is collapsed.
Click to expand it.
Utils/Logger/Target.test.cc
+
4
−
2
View file @
83d33cfa
...
...
@@ -86,17 +86,19 @@ BOOST_AUTO_UNIT_TEST(target)
};
BOOST_CHECK_EQUAL_COLLECTIONS
(
i
,
i_end
,
data
,
data
+
sizeof
(
data
)
/
sizeof
(
data
[
0
])
);
BOOST_CHECK_EQUAL
(
*
target
.
begin
(),
target
[
0
]
);
target
.
unroute
<
senf
::
log
::
Debug
>
();
target
.
unroute
<
senf
::
log
::
test
::
myStream
,
senf
::
log
::
VERBOSE
>
();
target
.
unroute
<
senf
::
log
::
test
::
myStream
,
senf
::
log
::
DefaultArea
>
(
senf
::
log
::
Target
::
REJECT
);
target
.
unroute
<
senf
::
log
::
test
::
myStream
,
senf
::
log
::
test
::
Foo
,
senf
::
log
::
VERBOSE
>
();
target
.
unroute
(
"senf::log::test::myStream"
,
""
,
senf
::
log
::
IMPORTANT
::
value
,
senf
::
log
::
Target
::
REJECT
);
target
.
unroute
(
1
);
target
.
unroute
(
0
);
target
.
clear
(
);
BOOST_CHECK
(
target
.
begin
()
==
target
.
end
()
);
BOOST_CHECK
(
target
.
empty
()
);
BOOST_CHECK
(
target
.
size
()
==
0
);
}
///////////////////////////////cc.e////////////////////////////////////////
...
...
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