gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
CacheBlkIsDirtyVisitor Class Reference

Cache block visitor that determines if there are dirty blocks in a cache. More...

#include <cache.hh>

Inheritance diagram for CacheBlkIsDirtyVisitor:
CacheBlkVisitor

Public Member Functions

 CacheBlkIsDirtyVisitor ()
 
bool operator() (CacheBlk &blk) override
 
bool isDirty () const
 Does the array contain a dirty line? More...
 
- Public Member Functions inherited from CacheBlkVisitor
 CacheBlkVisitor ()
 
virtual ~CacheBlkVisitor ()
 

Private Attributes

bool _isDirty
 

Detailed Description

Cache block visitor that determines if there are dirty blocks in a cache.

Use with the forEachBlk method in the tag array to determine if the array contains dirty blocks.

Definition at line 603 of file cache.hh.

Constructor & Destructor Documentation

CacheBlkIsDirtyVisitor::CacheBlkIsDirtyVisitor ( )
inline

Definition at line 606 of file cache.hh.

Member Function Documentation

bool CacheBlkIsDirtyVisitor::isDirty ( ) const
inline

Does the array contain a dirty line?

Returns
true if yes, false otherwise.

Definition at line 623 of file cache.hh.

References _isDirty.

Referenced by Cache::isDirty().

bool CacheBlkIsDirtyVisitor::operator() ( CacheBlk blk)
inlineoverridevirtual

Implements CacheBlkVisitor.

Definition at line 609 of file cache.hh.

References _isDirty, and CacheBlk::isDirty().

Member Data Documentation

bool CacheBlkIsDirtyVisitor::_isDirty
private

Definition at line 623 of file cache.hh.

Referenced by isDirty(), and operator()().


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

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