gem5  [DEVELOP-FOR-23.0]
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 554 of file cache_blk.hh.

Constructor & Destructor Documentation

◆ CacheBlkPrintWrapper()

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

Definition at line 558 of file cache_blk.hh.

◆ ~CacheBlkPrintWrapper()

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

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

Referenced by print().


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

Generated on Sun Jul 30 2023 01:57:09 for gem5 by doxygen 1.8.17