2 #include "functortab.h"
4 FunctorTable::FunctorTable(HashFunction f
, Equality e
, int 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; }