#include <Allocator.h>
Public Member Functions | |
void | setPageAsUsed (size_t offset) |
void | setFirstPageAsUsed () |
Data Fields | |
int | isUsed_ |
int | hasFreeSpace_ |
Page * | nextPageAfterMerge_ |
Page * | nextPage_ |
Definition at line 46 of file Allocator.h.
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 }
Definition at line 50 of file Allocator.h.
Referenced by Chunk::allocate(), Chunk::free(), setFirstPageAsUsed(), and setPageAsUsed().
Definition at line 49 of file Allocator.h.
Referenced by Chunk::compact(), Database::getFreePage(), setFirstPageAsUsed(), and setPageAsUsed().
Definition at line 57 of file Allocator.h.
Referenced by Chunk::compact(), Chunk::getPageInfo(), ChunkIterator::nextElement(), setFirstPageAsUsed(), and setPageAsUsed().
Definition at line 52 of file Allocator.h.
Referenced by Database::createSystemDatabaseChunk(), Database::getFreePage(), Chunk::getPageInfo(), setFirstPageAsUsed(), and setPageAsUsed().