|
gem5
|
Wrap a method and present it as a cache block visitor. More...
#include <cache.hh>
Public Types | |
| typedef bool(Cache::* | VisitorPtr )(CacheBlk &blk) |
Public Member Functions | |
| CacheBlkVisitorWrapper (Cache &_cache, VisitorPtr _visitor) | |
| bool | operator() (CacheBlk &blk) override |
Public Member Functions inherited from CacheBlkVisitor | |
| CacheBlkVisitor () | |
| virtual | ~CacheBlkVisitor () |
Private Attributes | |
| Cache & | cache |
| VisitorPtr | visitor |
Wrap a method and present it as a cache block visitor.
For example the forEachBlk method in the tag arrays expects a callable object/function as their parameter. This class wraps a method in an object and presents callable object that adheres to the cache block visitor protocol.
| typedef bool(Cache::* CacheBlkVisitorWrapper::VisitorPtr)(CacheBlk &blk) |
|
inline |
|
inlineoverridevirtual |
|
private |
Definition at line 592 of file cache.hh.
Referenced by operator()().
|
private |
Definition at line 593 of file cache.hh.
Referenced by operator()().