Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
73900f62
Commit
73900f62
authored
Oct 07, 2012
by
Michal 'vorner' Vaner
Browse files
[2292] Re-add version of find removed by accident
This one was not mutable, it just took Name as an argument.
parent
7a628baa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/memory/domaintree.h
View file @
73900f62
...
@@ -1102,6 +1102,23 @@ public:
...
@@ -1102,6 +1102,23 @@ public:
return
(
ret
);
return
(
ret
);
}
}
/// \brief Simple find returning immutable node.
///
/// Acts as described in the \ref find section, but returns immutable
/// node pointer.
template
<
typename
CBARG
>
Result
find
(
const
isc
::
dns
::
Name
&
name
,
const
DomainTreeNode
<
T
>**
node
,
DomainTreeNodeChain
<
T
>&
node_path
,
bool
(
*
callback
)(
const
DomainTreeNode
<
T
>&
,
CBARG
),
CBARG
callback_arg
)
const
{
const
isc
::
dns
::
LabelSequence
ls
(
name
);
Result
ret
=
find
(
ls
,
node
,
node_path
,
callback
,
callback_arg
);
return
(
ret
);
}
/// \brief Find with callback and node chain
/// \brief Find with callback and node chain
/// \anchor callback
/// \anchor callback
///
///
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment