Record Class Reference

Class for in-memory representation of records. It records the record identifier of the record, and the contents of the record in a byte buffer. More...

#include <Record.h>

List of all members.

Public Member Functions

 Record (uint recordSize)
 Constructor for record class.
 ~Record ()
 Destructor for record class.
char * getData ()
 Get the data buffer for this record.
void setRid (RecordID *rid)
 Set the record id for this record.
void getRid (RecordID *rid)
 Get the record id for this record.
uint getRecordSize ()
 Get the size in bytes of the buffer for this record.


Detailed Description

Class for in-memory representation of records. It records the record identifier of the record, and the contents of the record in a byte buffer.

Constructor & Destructor Documentation

Record::Record ( uint  recordSize  ) 

Constructor for record class.

Parameters:
recordSize The size in bytes of the buffer for this record
Allocates a buffer of size recordSize bytes

Record::~Record (  ) 

Destructor for record class.

Deletes the buffer


Member Function Documentation

char * Record::getData (  ) 

Get the data buffer for this record.

Returns a pointer to the data buffer for this record. The buffer should not be deleted by the caller.

void Record::setRid ( RecordID rid  ) 

Set the record id for this record.

Parameters:
rid The record id to copy into this record

void Record::getRid ( RecordID rid  ) 

Get the record id for this record.

Parameters:
rid Structure in which to copy this record's id


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

Generated on Mon May 16 17:05:06 2011 by  doxygen 1.5.6