#include <PagePredicate.h>
Inheritance diagram for DeviceIdPagePredicate:

| Public Member Functions | |
| DeviceIdPagePredicate (DeviceId) | |
| virtual bool | operator() (CachePage const &page) | 
| Tests the predicate. | |
| Private Attributes | |
| DeviceId | deviceId | 
Definition at line 56 of file PagePredicate.h.
| DeviceIdPagePredicate::DeviceIdPagePredicate | ( | DeviceId | ) |  [explicit] | 
Definition at line 33 of file PagePredicate.cpp.
References deviceId.
00034 { 00035 deviceId = deviceIdinit; 00036 }
| bool DeviceIdPagePredicate::operator() | ( | CachePage const & | page | ) |  [virtual] | 
Tests the predicate.
| page | the page to be considered | 
Implements PagePredicate.
Definition at line 38 of file PagePredicate.cpp.
References deviceId, CachePage::getBlockId(), and CompoundId::getDeviceId().
00039 { 00040 return CompoundId::getDeviceId(page.getBlockId()) == deviceId; 00041 }
| DeviceId DeviceIdPagePredicate::deviceId  [private] | 
Definition at line 59 of file PagePredicate.h.
Referenced by DeviceIdPagePredicate(), and operator()().
 1.5.1
 1.5.1