gem5 v24.0.0.0
|
Templatized storage and interface for a simple scalar stat. More...
#include <storage.hh>
Classes | |
struct | Params |
Public Member Functions | |
StatStor (const StorageParams *const storage_params) | |
Builds this storage element and calls the base constructor of the datatype. | |
void | set (Counter val) |
The the stat to the given value. | |
void | inc (Counter val) |
Increment the stat by the given value. | |
void | dec (Counter val) |
Decrement the stat by the given value. | |
Counter | value () const |
Return the value of this stat as its base type. | |
Result | result () const |
Return the value of this stat as a result type. | |
void | prepare (const StorageParams *const storage_params) |
Prepare stat data for dumping or serialization. | |
void | reset (const StorageParams *const storage_params) |
Reset stat value to default. | |
bool | zero () const |
Private Attributes | |
Counter | data |
The statistic value. | |
Templatized storage and interface for a simple scalar stat.
Definition at line 56 of file storage.hh.
|
inline |
Builds this storage element and calls the base constructor of the datatype.
Definition at line 69 of file storage.hh.
|
inline |
Decrement the stat by the given value.
val | The new value. |
Definition at line 89 of file storage.hh.
References data, and gem5::X86ISA::val.
Referenced by TEST().
|
inline |
Increment the stat by the given value.
val | The new value. |
Definition at line 83 of file storage.hh.
References data, and gem5::X86ISA::val.
|
inline |
Prepare stat data for dumping or serialization.
Definition at line 106 of file storage.hh.
Referenced by TEST().
|
inline |
Reset stat value to default.
Definition at line 111 of file storage.hh.
References data.
Referenced by TEST().
|
inline |
Return the value of this stat as a result type.
Definition at line 101 of file storage.hh.
References data.
|
inline |
The the stat to the given value.
val | The new value. |
Definition at line 77 of file storage.hh.
References data, and gem5::X86ISA::val.
|
inline |
|
inline |
Definition at line 116 of file storage.hh.
References data.
Referenced by TEST().
|
private |