gem5 v24.1.0.1
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
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 572 of file cache_blk.hh.

Constructor & Destructor Documentation

◆ CacheBlkPrintWrapper()

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

Definition at line 576 of file cache_blk.hh.

◆ ~CacheBlkPrintWrapper()

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

Definition at line 577 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 574 of file cache_blk.hh.

Referenced by print().


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

Generated on Mon Jan 13 2025 04:28:49 for gem5 by doxygen 1.9.8