⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pf_pagehandle.h

📁 斯坦福大学数据库实现的代码,非常好的.可以了解数据库系统的实现
💻 H
字号:
/* *  This file defines the PF_PageHandle class. The methods *  of this class can be used to manipulate a page present in *  the main memory (the buffer). */#ifndef PF_PAGEHANDLE_H#define PF_PAGEHANDLE_H#include "PF.h"class PF_PageHandle {private:	bool  bOpen; /* True if page handle is open */	Frame *pFrame; /* Ptr to the page's frame for which this object is			  a handle */public:	  PF_PageHandle ();	  ~PF_PageHandle (); 	/* Attaches frame's page to page handle */	RC Open (Frame &frame); 	/* Detaches page from page handle */	RC Close ();	/* Gets page number of the page */	RC GetPageNum (PageNum &pageNum) const;	/* Gets a ptr to the data part of the page */	RC GetData (char *&pData) const;};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -