gem5
|
Simple class to provide virtual print() method on cache blocks without allocating a vtable pointer for every single cache block. More...
#include <blk.hh>
Public Member Functions | |
CacheBlkPrintWrapper (CacheBlk *_blk) | |
virtual | ~CacheBlkPrintWrapper () |
void | print (std::ostream &o, int verbosity=0, const std::string &prefix="") const |
Public Member Functions inherited from Printable | |
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.
|
inline |
|
inlinevirtual |
|
virtual |
Implements Printable.
Definition at line 46 of file blk.cc.
References blk, ccprintf(), CacheBlk::isDirty(), CacheBlk::isSecure(), CacheBlk::isValid(), and CacheBlk::isWritable().
|
private |