MappedPageListenerPredicate Class Reference

MappedPageListenerPredicate is an implementation of PagePredicate which returns true for pages with a given MappedPageListener. More...

#include <PagePredicate.h>

Inheritance diagram for MappedPageListenerPredicate:

PagePredicate List of all members.

Public Member Functions

 MappedPageListenerPredicate (MappedPageListener &)
virtual bool operator() (CachePage const &page)
 Tests the predicate.

Private Attributes

MappedPageListenerlistener

Detailed Description

MappedPageListenerPredicate is an implementation of PagePredicate which returns true for pages with a given MappedPageListener.

Definition at line 71 of file PagePredicate.h.


Constructor & Destructor Documentation

MappedPageListenerPredicate::MappedPageListenerPredicate ( MappedPageListener  )  [explicit]

Definition at line 43 of file PagePredicate.cpp.

00045     : listener(listenerInit)
00046 {
00047 }


Member Function Documentation

bool MappedPageListenerPredicate::operator() ( CachePage const &  page  )  [virtual]

Tests the predicate.

Parameters:
page the page to be considered
Returns:
true iff the page satisfies the predicate

Implements PagePredicate.

Definition at line 49 of file PagePredicate.cpp.

References CachePage::getMappedPageListener(), and listener.

00050 {
00051     return page.getMappedPageListener() == &listener;
00052 }


Member Data Documentation

MappedPageListener& MappedPageListenerPredicate::listener [private]

Definition at line 74 of file PagePredicate.h.

Referenced by operator()().


The documentation for this class was generated from the following files:
Generated on Mon Jun 22 04:00:39 2009 for Fennel by  doxygen 1.5.1