BadgerDB
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends
Public Member Functions | Public Attributes
badgerdb::RecordId Struct Reference

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

#include <types.h>

List of all members.

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 49 of file types.h.


Member Function Documentation

bool badgerdb::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 76 of file types.h.

                                             {
    return (page_number != rhs.page_number) || (slot_number != rhs.slot_number);
  }
bool badgerdb::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 66 of file types.h.

                                             {
    return page_number == rhs.page_number && slot_number == rhs.slot_number;
  }

Member Data Documentation

Number of page containing this record.

Definition at line 53 of file types.h.

Number of slot within the page containing this record.

Definition at line 58 of file types.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends