heap_storage.cpp
SlottedPage::SlottedPage(Dbt &block, BlockID block_id, bool is_new) : DbBlock(block, block_id, is_new) {
    if (is_new) {
        this->num_records = 0;
        this->end_free = DbBlock::BLOCK_SZ - 1;
        put_header();
    } else {
        get_header(this->num_records, this->end_free);
    }
}
//Constructor for slotted page
//Provided by Professor Lundeen

Constructor for slotted page
Provided by Professor Lundeen
Constructor for slotted page Provided by Professor Lundeen
SlottedPage::SlottedPage(Dbt &block, BlockID block_id, bool is_new) : DbBlock(block, block_id, is_new) {
    if (is_new) {
        this->num_records = 0;
        this->end_free = DbBlock::BLOCK_SZ - 1;
        put_header();
    } else {
        get_header(this->num_records, this->end_free);
    }
}
SlottedPage :: SlottedPage ( Dbt & block , BlockID block_id , bool is_new ) : DbBlock ( block , block_id , is_new ) { if ( is_new ) { this -> num_records = 0 ; this -> end_free = DbBlock :: BLOCK_SZ - 1 ; put_header ( ) ; } else { get_header ( this -> num_records , this -> end_free ) ; } }
Constructor for slotted page
Provided by Professor Lundeen
Constructor for slotted page Provided by Professor Lundeen