Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Segment Class Reference

This class contains information about a storage segment on disk. More...

#include <segment.h>

Collaboration diagram for Segment:

Collaboration graph
[legend]
List of all members.

Public Attributes

Segment_headerheader
void * buffer
unsigned int first_block
unsigned int curr_page_block
unsigned int pages_count
unsigned int index

Detailed Description

This class contains information about a storage segment on disk.

The disk is divided up into a series of fixed-size segments, and each segment contains several data pages. A Segment object in memory provides information about a single storage segment on disk. It contains a copy of the segment's header and a buffer containing its page data.


Member Data Documentation

void* Segment::buffer
 

contains the segment's page data.

unsigned int Segment::curr_page_block
 

disk block of current page.

unsigned int Segment::first_block
 

block number of segment on disk.

Segment_header* Segment::header
 

copy of segment's metadata.

unsigned int Segment::index
 

0th segment is 0, 1st segment is 1.

unsigned int Segment::pages_count
 

number of pages stored in segment.


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

Torsion Operating System, Copyright (C) 2000-2002 Dan Helfman