not needed
[prop.git] / prop-src / functortab.cc
blob74540f67486f3e08824a472a6341c8e411e034fa
1 #include "basics.h"
2 #include "functortab.h"
4 FunctorTable::FunctorTable(HashFunction f, Equality e, int sz)
5 : HashTable(f,e,sz) {}
6 FunctorTable::~FunctorTable() {}
8 FunctorTable::Functor FunctorTable::operator [] (Key k) const
9 { HashTable::Entry * e = lookup(k);
10 if (e) return (Functor)(long)(e->v);
11 else { bug("FunctorTable::operator []\n"); return 0; }