LRU最近最少使用算法

源代码在线查看: lru最近最少使用算法view.h

软件大小: 2193 K
上传用户: weizik
关键词: LRU 算法
下载地址: 免注册下载 普通下载 VIP

相关代码

				// LRU最近最少使用算法View.h : interface of the CLRUView class
				//
				/////////////////////////////////////////////////////////////////////////////
				
				#if !defined(AFX_LRUVIEW_H__A01A33BF_DF57_43E7_80F3_74BBA0C4E61E__INCLUDED_)
				#define AFX_LRUVIEW_H__A01A33BF_DF57_43E7_80F3_74BBA0C4E61E__INCLUDED_
				
				#if _MSC_VER > 1000
				#pragma once
				#endif // _MSC_VER > 1000
				
				
				class CLRUView : public CView
				{
				protected: // create from serialization only
					CLRUView();
					DECLARE_DYNCREATE(CLRUView)
				
				// Attributes
				public:
					CLRUDoc* GetDocument();
				
				// Operations
				public:
				
				// Overrides
					// ClassWizard generated virtual function overrides
					//{{AFX_VIRTUAL(CLRUView)
					public:
					virtual void OnDraw(CDC* pDC);  // overridden to draw this view
					virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
					virtual void OnInitialUpdate();
					protected:
					virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
					virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
					virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
					//}}AFX_VIRTUAL
				
				// Implementation
				public:
					virtual ~CLRUView();
				#ifdef _DEBUG
					virtual void AssertValid() const;
					virtual void Dump(CDumpContext& dc) const;
				#endif
				
				protected:
				
				// Generated message map functions
				protected:
					//{{AFX_MSG(CLRUView)
						// NOTE - the ClassWizard will add and remove member functions here.
						//    DO NOT EDIT what you see in these blocks of generated code !
					//}}AFX_MSG
					DECLARE_MESSAGE_MAP()
				};
				
				#ifndef _DEBUG  // debug version in LRU最近最少使用算法View.cpp
				inline CLRUDoc* CLRUView::GetDocument()
				   { return (CLRUDoc*)m_pDocument; }
				#endif
				
				/////////////////////////////////////////////////////////////////////////////
				
				//{{AFX_INSERT_LOCATION}}
				// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
				
				#endif // !defined(AFX_LRUVIEW_H__A01A33BF_DF57_43E7_80F3_74BBA0C4E61E__INCLUDED_)
							

相关资源