gem5  v20.1.0.0
Public Member Functions | Private Attributes | List of all members
CacheBlkPrintWrapper Class Reference

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>

Inheritance diagram for CacheBlkPrintWrapper:
Printable

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

CacheBlkblk
 

Detailed Description

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 507 of file cache_blk.hh.

Constructor & Destructor Documentation

◆ CacheBlkPrintWrapper()

CacheBlkPrintWrapper::CacheBlkPrintWrapper ( CacheBlk _blk)
inline

Definition at line 511 of file cache_blk.hh.

◆ ~CacheBlkPrintWrapper()

virtual CacheBlkPrintWrapper::~CacheBlkPrintWrapper ( )
inlinevirtual

Definition at line 512 of file cache_blk.hh.

Member Function Documentation

◆ print()

void CacheBlkPrintWrapper::print ( std::ostream &  o,
int  verbosity = 0,
const std::string &  prefix = "" 
) const
virtual

Member Data Documentation

◆ blk

CacheBlk* CacheBlkPrintWrapper::blk
private

Definition at line 509 of file cache_blk.hh.

Referenced by print().


The documentation for this class was generated from the following files:

Generated on Wed Sep 30 2020 14:02:22 for gem5 by doxygen 1.8.17