OmniSciDB  5ade3759e0
File_Namespace::Page Struct Reference

A logical page (Page) belongs to a file on disk. More...

#include <Page.h>

Public Member Functions

 Page (int fileId, size_t pageNum)
 page number More...
 
 Page ()
 
bool isValid ()
 

Public Attributes

int fileId
 
size_t pageNum
 unique identifier of the owning file More...
 

Detailed Description

A logical page (Page) belongs to a file on disk.

A Page struct stores the file id for the file it belongs to, and it stores its page number and number of used bytes within the page.

Note: the number of used bytes should not be greater than the page size. The page size is determined by the containing file.

Definition at line 46 of file Page.h.

Constructor & Destructor Documentation

◆ Page() [1/2]

File_Namespace::Page::Page ( int  fileId,
size_t  pageNum 
)
inline

page number

Constructor

Definition at line 51 of file Page.h.

size_t pageNum
unique identifier of the owning file
Definition: Page.h:48

◆ Page() [2/2]

File_Namespace::Page::Page ( )
inline

Definition at line 52 of file Page.h.

52 : fileId(-1), pageNum(0) {}
size_t pageNum
unique identifier of the owning file
Definition: Page.h:48

Member Function Documentation

◆ isValid()

bool File_Namespace::Page::isValid ( )
inline

Definition at line 54 of file Page.h.

54 { return fileId >= 0; }

Member Data Documentation

◆ fileId

◆ pageNum


The documentation for this struct was generated from the following file: