wisc_db
Public Member Functions | Public Attributes | List of all members
wiscdb::RecordId Struct Reference

Identifier for a record in a page. More...

#include <types.h>

Public Member Functions

bool operator== (const RecordId &rhs) const
 
bool operator!= (const RecordId &rhs) const
 

Public Attributes

PageId page_number
 
SlotId slot_number
 

Detailed Description

Identifier for a record in a page.

Definition at line 30 of file types.h.

Member Function Documentation

bool wiscdb::RecordId::operator!= ( const RecordId rhs) const
inline

Returns true if this record ID is different from the record as the given ID.

Parameters
rhsRecord ID to compare against.
Returns
Whether the other ID is different from record as this one.

Definition at line 57 of file types.h.

57  {
58  return (page_number != rhs.page_number) || (slot_number != rhs.slot_number);
59  }
SlotId slot_number
Definition: types.h:39
PageId page_number
Definition: types.h:34
bool wiscdb::RecordId::operator== ( const RecordId rhs) const
inline

Returns true if this record ID refers to the same record as the given ID.

Parameters
rhsRecord ID to compare against.
Returns
Whether the other ID refers to the same record as this one.

Definition at line 47 of file types.h.

47  {
48  return page_number == rhs.page_number && slot_number == rhs.slot_number;
49  }
SlotId slot_number
Definition: types.h:39
PageId page_number
Definition: types.h:34

Member Data Documentation

PageId wiscdb::RecordId::page_number

Number of page containing this record.

Definition at line 34 of file types.h.

SlotId wiscdb::RecordId::slot_number

Number of slot within the page containing this record.

Definition at line 39 of file types.h.


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