gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 <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 381 of file blk.hh.

Constructor & Destructor Documentation

CacheBlkPrintWrapper::CacheBlkPrintWrapper ( CacheBlk _blk)
inline

Definition at line 385 of file blk.hh.

virtual CacheBlkPrintWrapper::~CacheBlkPrintWrapper ( )
inlinevirtual

Definition at line 386 of file blk.hh.

Member Function Documentation

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

Member Data Documentation

CacheBlk* CacheBlkPrintWrapper::blk
private

Definition at line 383 of file blk.hh.

Referenced by print().


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

Generated on Fri Jun 9 2017 13:04:04 for gem5 by doxygen 1.8.6