gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::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 gem5::CacheBlkPrintWrapper:
gem5::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 gem5::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 571 of file cache_blk.hh.

Constructor & Destructor Documentation

◆ CacheBlkPrintWrapper()

gem5::CacheBlkPrintWrapper::CacheBlkPrintWrapper ( CacheBlk * _blk)
inline

Definition at line 575 of file cache_blk.hh.

◆ ~CacheBlkPrintWrapper()

virtual gem5::CacheBlkPrintWrapper::~CacheBlkPrintWrapper ( )
inlinevirtual

Definition at line 576 of file cache_blk.hh.

Member Function Documentation

◆ print()

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

Member Data Documentation

◆ blk

CacheBlk* gem5::CacheBlkPrintWrapper::blk
private

Definition at line 573 of file cache_blk.hh.

Referenced by print().


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

Generated on Tue Jun 18 2024 16:24:10 for gem5 by doxygen 1.11.0