00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 #ifndef Edge_HPP
00010 #define Edge_HPP
00011 
00017 #include "common.hpp"
00018 
00019 
00025 class Edge : public std::pair<item_t, void*>
00026 {
00027    public:
00028       Edge():std::pair<item_t, void*>(){}
00029       Edge(item_t label, void* subtrie) : 
00030          std::pair<item_t, void*>(label, subtrie){}
00031       
00032       bool operator<(const item_t other_label) const
00033       {
00034          return first < other_label;
00035       }
00036       bool operator>(const item_t other_label) const
00037       {
00038          return first > other_label;
00039       }
00040 
00041       bool operator==(const item_t other_label) const
00042       {
00043          return first == other_label;
00044       }
00045 
00046 };
00047 
00048 #endif