#include "Directory.h" #include "Bucket.h" #include "Bucketfile.h" #include "hash.h" #include #include #include #include // for setw, setiosflags, etc... using namespace std; Bucket::Bucket(Directory & dir, int maxKeys)//constructor :Dir(dir) { Index =0; BucketAddr = 0; Depth = 0; Numlines =0; } // Accessors for the index int Bucket::getIndex() const { return Index; } void Bucket::setIndex(int newIndex) { Index = newIndex; } int Bucket::Insert(long key, int recAddr) { MaxKeySize=5; setIndex(hash(key,Dir.Depth)); if (NumKeys