Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Edge.hpp

Go to the documentation of this file.
00001 /***************************************************************************
00002                           Edge.hpp  -  description
00003                              -------------------
00004     begin                : cs dec 26 2002
00005     copyright            : (C) 2002 by Ferenc Bodon
00006     email                : bodon@cs.bme.hu
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

Generated on Sun Sep 17 17:50:38 2006 for FIM environment by  doxygen 1.4.4