Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

pageframeselectionpolicy.h

Go to the documentation of this file.
00001 
00007 /*
00008  *  Copyright (C) 2004 Bregmasoft
00009  * 
00010  * This program is free software; you can redistribute it and/or modify it under
00011  * the terms of the GNU General Public License as published by the Free Software
00012  * Foundation; either version 2 of the License, or (at your option) any later
00013  * version.
00014  * 
00015  * This program is distributed in the hope that it will be useful, but WITHOUT ANY
00016  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
00017  * PARTICULAR PURPOSE. See the GNU General Public License for more details.
00018  * 
00019  * You should have received a copy of the GNU General Public License along with
00020  * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
00021  * Place, Suite 330, Boston, MA 02111-1307 USA
00022  */
00023 #ifndef ZYGOMA_PAGEFRAMESELECTIONPOLICY_H_ 
00024 #define ZYGOMA_PAGEFRAMESELECTIONPOLICY_H_ 
00025 
00026 #include <pageframetable.h>
00027 
00028 namespace Zygoma
00029 {
00030   class PageFrame;
00031 
00041   class PageFrameSelectionPolicy
00042   {
00043   public:
00047     virtual ~PageFrameSelectionPolicy() = 0;
00048 
00054     virtual PageFrameTable::FrameIndex
00055     selectUnusedFrame() const = 0;
00056     
00068     virtual PageFrameTable::FrameIndex
00069     selectReplacementFrame() const = 0;
00070 
00071   protected:
00080     const PageFrame&
00081     getFrame(PageFrameTable* pageFrameTable, PageFrameTable::FrameIndex frameIndex);
00082   };
00083 } // namespace Zygoma
00084 
00085 #endif // ZYGOMA_PAGEFRAMESELECTIONPOLICY_H_ 

Generated on Fri Sep 2 10:44:36 2005 for zygoma by doxygen 1.4.2