The InteractiveMode class for replacement policies.
More...
#include <interactive_mode_replacer.h>
|
void | receiveAccess (tag_t tag) |
| Issue an access to a cache block. More...
|
|
void | reset () |
| Revert the system back to the initial state.
|
|
void | printSeparator () |
| Print a horizontal line in the table.
|
|
void | printStats () |
| Print simulation run statistics in CSV format (headerless)
|
|
The InteractiveMode class for replacement policies.
◆ InteractiveModeReplacer()
InteractiveModeReplacer::InteractiveModeReplacer |
( |
std::string |
replacement_policy_name | ) |
|
Construct a new interactive mode cache showcasing a replacement policy.
- Parameters
-
replacement_policy_name | The replacement policy to use |
◆ evalutateCommand()
bool InteractiveModeReplacer::evalutateCommand |
( |
std::string & |
cmd | ) |
|
|
virtual |
Evaluate a command received from the input.
- Parameters
-
- Returns
- True if the command was successful
Implements InteractiveMode.
◆ receiveAccess()
void InteractiveModeReplacer::receiveAccess |
( |
tag_t |
tag | ) |
|
|
private |
Issue an access to a cache block.
- Parameters
-
The documentation for this class was generated from the following files: