edgearray.h

Go to the documentation of this file.
00001 #ifndef  __EdgeArray_h
00002 #define  __EdgeArray_h
00003 
00004 #include  <map>
00005 #include  "fixarray.h"
00006 
00007 /*-----------------------------------------*/
00008 
00009 namespace Gascoigne
00010 {
00011 template<int N>
00012 class EdgeArray : public fixarray<N,int>
00013 {
00014  public:
00015 
00016   EdgeArray<N>();
00017   EdgeArray<N>(const int& d);
00018   EdgeArray<N>(const fixarray<N,int>& e);
00019   EdgeArray<N>(const EdgeArray<N>& e);
00020   
00021   bool operator==(const EdgeArray<N>&)    const;
00022   bool operator==(const fixarray<N,int>&) const;
00023 
00024   int sum() const;
00025 };
00026 
00027 /*-----------------------------------------*/
00028 
00029 template<int N>
00030 class EdgeArrayCompare
00031 {
00032  public:
00033 
00034   bool operator()(const EdgeArray<N>& EA1, const EdgeArray<N>& EA2) const
00035   {
00036 /*     EdgeArray<N> S1(EA1), S2(EA2); */
00037 /*     std::sort(S1.begin(),S1.end()); */
00038 /*     std::sort(S2.begin(),S2.end()); */
00039 /*     return S1<S2; */
00040 
00041     return !(EA1==EA2);
00042   }
00043 };
00044 }
00045 
00046 /*------------------------------------------------------*/
00047 
00048 #endif

Generated on Thu Sep 14 10:34:37 2006 for Gascoigne by  doxygen 1.4.7