summaryrefslogtreecommitdiff
path: root/src/mtrie.hpp
diff options
context:
space:
mode:
authorStaffan Gimåker <staffan@spotify.com>2012-02-16 10:02:22 +0900
committerMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:02:22 +0900
commit024e8b2d73237cf2a8e7e463b9b7c72764c00458 (patch)
tree865af4b9fe88531f8d2ea74c8fc554a5a9f1bc8a /src/mtrie.hpp
parent82dfe7522eddb01bb8e99e7badf3808eda2be957 (diff)
Prune redundant nodes in the mtrie.
Signed-off-by: Staffan Gimåker <staffan@spotify.com>
Diffstat (limited to 'src/mtrie.hpp')
-rw-r--r--src/mtrie.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mtrie.hpp b/src/mtrie.hpp
index 9018d8f..45426ae 100644
--- a/src/mtrie.hpp
+++ b/src/mtrie.hpp
@@ -1,5 +1,6 @@
/*
Copyright (c) 2011-2012 250bpm s.r.o.
+ Copyright (c) 2011-2012 Spotify AB
Copyright (c) 2011 Other contributors as noted in the AUTHORS file
This file is part of Crossroads project.
@@ -69,12 +70,14 @@ namespace xs
void *arg_);
bool rm_helper (unsigned char *prefix_, size_t size_,
xs::pipe_t *pipe_);
+ bool is_redundant () const;
typedef std::set <xs::pipe_t*> pipes_t;
pipes_t pipes;
unsigned char min;
unsigned short count;
+ unsigned short live_nodes;
union {
class mtrie_t *node;
class mtrie_t **table;