Added ForEach to RegionPagerBase and RegionPager's API

This commit is contained in:
2016-11-25 18:22:29 +11:00
parent 288b112623
commit 4f9b8695bd
3 changed files with 30 additions and 0 deletions
+4
View File
@@ -101,6 +101,10 @@ void RegionPagerBase::UnloadAll() {
regionList.clear();
}
void RegionPagerBase::ForEach(std::function<void(Region&)> fn) {
std::for_each(regionList.begin(), regionList.end(), fn);
}
std::list<Region>* RegionPagerBase::GetContainer() {
return &regionList;
}