PagedArray.cpp
/**
 * Constructor for the class
 * @param binFile The binary file pointer to be used in the PagedArray
 */
Constructor for the class
@param binFile The binary file pointer to be used in the PagedArray
Constructor for the class @param binFile The binary file pointer to be used in the PagedArray
PagedArray::PagedArray(std::FILE *binFile) {
    file = binFile;
    int i;
    for (i = 0; i < NUMPAGES; i++) {
        pageContainer[i] = (int *) malloc(PAGESIZE * sizeof(int));
        std::fill_n(pageContainer[i], PAGESIZE, -1);
    }
}
PagedArray :: PagedArray ( std :: FILE * binFile ) { file = binFile ; int i ; for ( i = 0 ; i < NUMPAGES ; i ++ ) { pageContainer [ i ] = ( int * ) malloc ( PAGESIZE * sizeof ( int ) ) ; std :: fill_n ( pageContainer [ i ] , PAGESIZE , -1 ) ; } }
Constructor for the class
 @param binFile The binary file pointer to be used in the PagedArray
Constructor for the class @param binFile The binary file pointer to be used in the PagedArray