From 1c16c9dd9fca28260793f8b89b5fe484e541715d Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 22 Dec 2008 18:51:03 +0000 Subject: cleaned up routingTree structure --- src/routingTreeNode.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/routingTreeNode.h') diff --git a/src/routingTreeNode.h b/src/routingTreeNode.h index c09f2c9..3c2d33d 100644 --- a/src/routingTreeNode.h +++ b/src/routingTreeNode.h @@ -29,8 +29,8 @@ * along with anytun. If not, see . */ -#ifndef _ROUTINGTREENODE_H -#define _ROUTINGTREENODE_H +#ifndef _ROUTING_TREE_NODE_H +#define _ROUTING_TREE_NODE_H #include "threadUtils.hpp" @@ -38,16 +38,22 @@ #include "networkAddress.h" #include "networkPrefix.h" +class RoutingTree; + class RoutingTreeNode { public: RoutingTreeNode(); ~RoutingTreeNode(); + void print(int) const; + +private: +// Mutex mutex_; u_int16_t mux_; bool valid_; boost::array nodes_; - void print(int) const; -private: - Mutex mutex_; + + friend class RoutingTree; }; + #endif -- cgit v1.2.3