13 lines
241 B
C++
13 lines
241 B
C++
#include "set.h"
|
|
|
|
using std::vector;
|
|
using CacheSim::Block;
|
|
using CacheSim::Set;
|
|
|
|
Set::Set(short waySize, short tagSize){
|
|
this->waySize = waySize;
|
|
|
|
for(int i=0; i<waySize; i++){
|
|
this->blocks.push_back(Block(tagSize));
|
|
}
|
|
} |