PageInfo Class Reference

#include <Allocator.h>


Public Member Functions

void setPageAsUsed (size_t offset)
void setFirstPageAsUsed ()

Data Fields

int isUsed_
int hasFreeSpace_
PagenextPageAfterMerge_
PagenextPage_


Detailed Description

Definition at line 46 of file Allocator.h.


Member Function Documentation

void PageInfo::setFirstPageAsUsed (  ) 

Definition at line 30 of file PageInfo.cxx.

References hasFreeSpace_, isUsed_, nextPage_, and nextPageAfterMerge_.

Referenced by Database::createSystemDatabaseChunk().

00031 {
00032     isUsed_ = 1;
00033     hasFreeSpace_ = 1;
00034     nextPageAfterMerge_ = NULL;
00035     nextPage_ = NULL;
00036 }

Here is the caller graph for this function:

void PageInfo::setPageAsUsed ( size_t  offset  ) 

Definition at line 20 of file PageInfo.cxx.

References hasFreeSpace_, isUsed_, nextPage_, nextPageAfterMerge_, and PAGE_SIZE.

00021 {
00022     isUsed_ = 1;
00023     hasFreeSpace_ = 1;
00024     nextPage_ = NULL;
00025     if (PAGE_SIZE > offset)
00026         nextPageAfterMerge_ = NULL;
00027     else
00028         nextPageAfterMerge_ = ((char*)this)+ offset;
00029 }


Field Documentation

int PageInfo::hasFreeSpace_

Definition at line 50 of file Allocator.h.

Referenced by Chunk::allocate(), Chunk::free(), setFirstPageAsUsed(), and setPageAsUsed().

int PageInfo::isUsed_

Definition at line 49 of file Allocator.h.

Referenced by Chunk::compact(), Database::getFreePage(), setFirstPageAsUsed(), and setPageAsUsed().

Page* PageInfo::nextPage_

Definition at line 57 of file Allocator.h.

Referenced by Chunk::compact(), Chunk::getPageInfo(), ChunkIterator::nextElement(), setFirstPageAsUsed(), and setPageAsUsed().

Page* PageInfo::nextPageAfterMerge_

Definition at line 52 of file Allocator.h.

Referenced by Database::createSystemDatabaseChunk(), Database::getFreePage(), Chunk::getPageInfo(), setFirstPageAsUsed(), and setPageAsUsed().


The documentation for this class was generated from the following files:
Generated on Mon Jun 9 22:49:34 2008 for csql by  doxygen 1.4.7