#include <RandomVictimPolicy.h>
Public Member Functions | |
PageIterator (RandomVictimPolicy &policyInit, uint iPageInit) | |
void | operator++ () |
PageT * | operator-> () const |
operator PageT * () const | |
PageT & | operator * () const |
bool | operator== (PageIterator const &other) const |
Private Member Functions | |
PageT * | getCurrent () const |
Private Attributes | |
RandomVictimPolicy | policy |
uint | iPage |
Definition at line 68 of file RandomVictimPolicy.h.
RandomVictimPolicy< PageT >::PageIterator::PageIterator | ( | RandomVictimPolicy & | policyInit, | |
uint | iPageInit | |||
) | [inline] |
Definition at line 79 of file RandomVictimPolicy.h.
References RandomVictimPolicy< PageT >::PageIterator::iPage.
PageT* RandomVictimPolicy< PageT >::PageIterator::getCurrent | ( | ) | const [inline, private] |
Definition at line 73 of file RandomVictimPolicy.h.
References RandomVictimPolicy< PageT >::PageIterator::iPage, RandomVictimPolicy< PageT >::pages, and RandomVictimPolicy< PageT >::PageIterator::policy.
Referenced by RandomVictimPolicy< PageT >::PageIterator::operator *(), RandomVictimPolicy< PageT >::PageIterator::operator PageT *(), and RandomVictimPolicy< PageT >::PageIterator::operator->().
void RandomVictimPolicy< PageT >::PageIterator::operator++ | ( | ) | [inline] |
Definition at line 85 of file RandomVictimPolicy.h.
References RandomVictimPolicy< PageT >::PageIterator::iPage, RandomVictimPolicy< PageT >::pages, and RandomVictimPolicy< PageT >::PageIterator::policy.
PageT* RandomVictimPolicy< PageT >::PageIterator::operator-> | ( | ) | const [inline] |
Definition at line 93 of file RandomVictimPolicy.h.
References RandomVictimPolicy< PageT >::PageIterator::getCurrent().
00094 { 00095 return getCurrent(); 00096 }
RandomVictimPolicy< PageT >::PageIterator::operator PageT * | ( | ) | const [inline] |
Definition at line 98 of file RandomVictimPolicy.h.
References RandomVictimPolicy< PageT >::PageIterator::getCurrent().
00099 { 00100 return getCurrent(); 00101 }
PageT& RandomVictimPolicy< PageT >::PageIterator::operator * | ( | ) | const [inline] |
Definition at line 103 of file RandomVictimPolicy.h.
References RandomVictimPolicy< PageT >::PageIterator::getCurrent().
00104 { 00105 return *getCurrent(); 00106 }
bool RandomVictimPolicy< PageT >::PageIterator::operator== | ( | PageIterator const & | other | ) | const [inline] |
Definition at line 108 of file RandomVictimPolicy.h.
References RandomVictimPolicy< PageT >::PageIterator::iPage.
00109 { 00110 // NOTE: assume policy object is same 00111 return iPage == other.iPage; 00112 }
RandomVictimPolicy RandomVictimPolicy< PageT >::PageIterator::policy [private] |
Definition at line 70 of file RandomVictimPolicy.h.
Referenced by RandomVictimPolicy< PageT >::PageIterator::getCurrent(), and RandomVictimPolicy< PageT >::PageIterator::operator++().
uint RandomVictimPolicy< PageT >::PageIterator::iPage [private] |