proj home

Files   Classes   Functions   Hierarchy  

cfcontainerhash.h

Go to the documentation of this file.
00001 #ifndef CFCONTAINERHASH_H
00002 #define CFCONTAINERHASH_H
00003 
00004 #include <bucketlink.h>
00005 #include <compilationfile.h>
00006 #include <hashtable.h>
00007 #include <stringpairhash.h>
00008 #include <typedefs.h>
00009 
00033 class cfcontainerhash
00034 {
00035 //public:
00036 
00037   typedef stringpair<compilationfile*> sp;
00038   typedef stringpairhash<compilationfile*> sph;
00039   typedef hashtable< sp, sph& > htable;
00040   typedef bucketlink< sp > blink;
00041 
00043   htable ht;
00045   sph sphash;
00047   hashtableiterator< htable > hti;
00048 public:
00049 
00051   cfcontainerhash(uintc size=200);
00052 
00054   void construct(uintc size);
00055 
00056 //  ~cfcontainerhash();
00057 
00059   compilationfile* operator [] (stringc & filename) const;
00060 
00062   boolc add(compilationfile* cf);
00063 
00065   boolc remove(stringc & filename);
00066 
00068   void reset();
00070   boolc operator ! ();
00072   void operator ++ ();
00074   compilationfile* operator() () const;
00075 
00076 private:
00078   vector< blink > vbl;
00080   vector< sp > vsp;
00081 };
00082 
00083 
00084 #endif
00085 

Generated on Fri Mar 4 00:49:27 2011 for Chelton Evans Source by  doxygen 1.5.8