Reader Test Class
/*
* This is not actually a replacement algorithm, but just prints each of the
* references send to the ref() call mainly to test the reader.
*/
#ifndef _readtest_h_
#define _readtest_h_
class ReadTest: public ReplacementAlg
{
public:
ReadTest(): ReplacementAlg(0,0) { }
virtual string name() { return "ReadTest"; }
virtual void ref(const Ref &r) {
std::cout << r << std::endl;
}
virtual unsigned long fault(const Ref &r) { return 0; }
};
#endif