gem5
v20.0.0.2
|
Simple class to provide virtual print() method on cache blocks without allocating a vtable pointer for every single cache block. More...
#include <cache_blk.hh>
Public Member Functions | |
CacheBlkPrintWrapper (CacheBlk *_blk) | |
virtual | ~CacheBlkPrintWrapper () |
void | print (std::ostream &o, int verbosity=0, const std::string &prefix="") const |
![]() | |
Printable () | |
virtual | ~Printable () |
Private Attributes | |
CacheBlk * | blk |
Simple class to provide virtual print() method on cache blocks without allocating a vtable pointer for every single cache block.
Just wrap the CacheBlk object in an instance of this before passing to a function that requires a Printable object.
Definition at line 506 of file cache_blk.hh.
|
inline |
Definition at line 510 of file cache_blk.hh.
|
inlinevirtual |
Definition at line 511 of file cache_blk.hh.
References CacheBlk::print().
|
virtual |
|
private |
Definition at line 508 of file cache_blk.hh.