heap_storage.cpp
RecordIDs* SlottedPage::ids(void) const {
    u16 size, loc;
    RecordIDs* records = new RecordIDs;
    for (u16 i = 1; i <= num_records; i++){
    	get_header(size, loc, i);
    	if(loc != 0)
    		records->push_back(i);
    }
    return records;
}
// Gets all non-deleted record IDs

Gets all non-deleted record IDs
Gets all non - deleted record IDs
RecordIDs* SlottedPage::ids(void) const {
    u16 size, loc;
    RecordIDs* records = new RecordIDs;
    for (u16 i = 1; i <= num_records; i++){
    	get_header(size, loc, i);
    	if(loc != 0)
    		records->push_back(i);
    }
    return records;
}
RecordIDs * SlottedPage :: ids ( void ) const { u16 size , loc ; RecordIDs * records = new RecordIDs ; for ( u16 i = 1 ; i <= num_records ; i ++ ) { get_header ( size , loc , i ) ; if ( loc != 0 ) records -> push_back ( i ) ; } return records ; }
Gets all non-deleted record IDs
Gets all non - deleted record IDs