Message 5

buf.h updated.

X-Added: With Flames (bblib $Revision: 1.4 $)
Return-path: <lw2j+@andrew.cmu.edu>
X-Andrew-Authenticated-as: 31049;andrew.cmu.edu;Leejay Wu
Received: from po7.andrew.cmu.edu via trymail for bb+academic.cs.15-721@andrew.cmu.edu
          ID </afs/andrew.cmu.edu/usr0/bb/Mailbox/Evcamz600Udf0Ls040>;
          Fri, 14 Sep 2001 16:46:55 -0400 (EDT)
Received: from unix2.andrew.cmu.edu via qmail
          ID </afs/andrew.cmu.edu/service/mailqs/q001/QF.0vcamm200Uj:E1clgX>;
          Fri, 14 Sep 2001 16:46:42 -0400 (EDT)
Received: from unix2.andrew.cmu.edu via qmail
          ID </afs/andrew.cmu.edu/usr9/lw2j/.Outgoing/QF.wvcamlq00Uj:41T61R>;
          Fri, 14 Sep 2001 16:46:41 -0400 (EDT)
Received: from mms.4.60.Jul.16.2001.15.09.31.sun4.57.EzMail.2.0.CUILIB.3.45.SNAP.NOT.LINKED.unix2.andrew.cmu.edu.sun4x.57
          via MS.5.6.unix2.andrew.cmu.edu.sun4_57;
          Fri, 14 Sep 2001 16:46:41 -0400 (EDT)
Message-ID: <ovcamlq00Uj_81T5sG@andrew.cmu.edu>
Date: Fri, 14 Sep 2001 16:46:41 -0400 (EDT)
From: Leejay Wu <lw2j+@andrew.cmu.edu>
X-Andrew-Message-Size:     831+0
Content-Type: text/plain
If-Type-Unsupported: alter
To: Andrew BBoard Account <bb+academic.cs.15-721@andrew.cmu.edu>
Subject: buf.h updated.
Cc: 

The solution code used a Replacer class, which provided a common 
API for deciding how to choose frames to replace.  Well, not 
exactly common -- it's tuned towards a clock-sweep algorithm, 
but that's another story.

In any event, just like in the full Minibase version the BufMgr
constructor accepted the Replacer object as an optional 
parameter.  Which means that, to link successfully, your BufMgr 
constructor must do the same -- and this has been added. 

IOW, a forward reference sometime before the BufMgr decl,

   class Replacer; 

and a changed constructor prototype:

   BufMgr(int bufsize, Replacer *replacer=0);

-- 
|   lw2j@cs.cmu.edu        | #include <0.0648g NaCl>     |              
|--------------------------|-----------------------------|  
|   #include <stddiscl.h>  | Spam returned to postmaster |