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
4babe763
Commit
4babe763
authored
Oct 02, 2012
by
Michal 'vorner' Vaner
Browse files
[2292] Parametrize constness of the chain
parent
f5811cdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/memory/domaintree.h
View file @
4babe763
...
...
@@ -684,7 +684,7 @@ DomainTreeNode<T>::predecessor() const {
/// DomainTree.
/// This is the reason why manipulation methods such as \c push() and \c pop()
/// are private (and not shown in the doxygen document).
template
<
typename
T
>
template
<
typename
T
,
typename
NodeType
=
const
DomainTreeNode
<
T
>
>
class
DomainTreeNodeChain
{
/// DomainTreeNodeChain is initialized by DomainTree, only DomainTree has
/// knowledge to manipulate it.
...
...
@@ -817,7 +817,7 @@ private:
/// root node of DomainTree
///
/// \exception None
const
DomainTreeNode
<
T
>
*
top
()
const
{
NodeType
*
top
()
const
{
assert
(
!
isEmpty
());
return
(
nodes_
[
level_count_
-
1
]);
}
...
...
@@ -840,7 +840,7 @@ private:
/// otherwise the node should be the root node of DomainTree.
///
/// \exception None
void
push
(
const
DomainTreeNode
<
T
>
*
node
)
{
void
push
(
NodeType
*
node
)
{
assert
(
level_count_
<
RBT_MAX_LEVEL
);
nodes_
[
level_count_
++
]
=
node
;
}
...
...
@@ -852,7 +852,7 @@ private:
const
static
int
RBT_MAX_LEVEL
=
isc
::
dns
::
Name
::
MAX_LABELS
;
size_t
level_count_
;
const
DomainTreeNode
<
T
>
*
nodes_
[
RBT_MAX_LEVEL
];
NodeType
*
nodes_
[
RBT_MAX_LEVEL
];
const
DomainTreeNode
<
T
>*
last_compared_
;
isc
::
dns
::
NameComparisonResult
last_comparison_
;
};
...
...
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