gem5
v22.1.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. More... | |
void | set (Counter val) |
The the stat to the given value. More... | |
void | inc (Counter val) |
Increment the stat by the given value. More... | |
void | dec (Counter val) |
Decrement the stat by the given value. More... | |
Counter | value () const |
Return the value of this stat as its base type. More... | |
Result | result () const |
Return the value of this stat as a result type. More... | |
void | prepare (const StorageParams *const storage_params) |
Prepare stat data for dumping or serialization. More... | |
void | reset (const StorageParams *const storage_params) |
Reset stat value to default. More... | |
bool | zero () const |
Private Attributes | |
Counter | data |
The statistic value. More... | |
Templatized storage and interface for a simple scalar stat.
Definition at line 57 of file storage.hh.
|
inline |
Builds this storage element and calls the base constructor of the datatype.
Definition at line 70 of file storage.hh.
|
inline |
Decrement the stat by the given value.
val | The new value. |
Definition at line 90 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 84 of file storage.hh.
References data, and gem5::X86ISA::val.
Referenced by TEST().
|
inline |
Prepare stat data for dumping or serialization.
Definition at line 107 of file storage.hh.
Referenced by TEST().
|
inline |
Reset stat value to default.
Definition at line 112 of file storage.hh.
References data.
Referenced by TEST().
|
inline |
Return the value of this stat as a result type.
Definition at line 102 of file storage.hh.
References data.
Referenced by TEST().
|
inline |
The the stat to the given value.
val | The new value. |
Definition at line 78 of file storage.hh.
References data, and gem5::X86ISA::val.
Referenced by TEST().
|
inline |
Return the value of this stat as its base type.
Definition at line 96 of file storage.hh.
References data.
Referenced by TEST().
|
inline |
Definition at line 117 of file storage.hh.
References data.
Referenced by TEST().
|
private |