pf_pagehandle.h

来自「斯坦福大学数据库实现的代码,非常好的.可以了解数据库系统的实现」· C头文件 代码 · 共 34 行

H
34
字号
/* *  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 + =
减小字号Ctrl + -
显示快捷键?