Zero  0.1.0
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
btrec_t Class Reference

Represents a record in BTree. More...

#include <btree_page_h.h>

Public Member Functions

 btrec_t ()
 
 btrec_t (const btree_page_h &page, slotid_t slot)
 
 ~btrec_t ()
 
btrec_tset (const btree_page_h &page, slotid_t slot)
 Load up a reference to the tuple at slot in "page". More...
 
smsize_t elen () const
 
const w_keystr_tkey () const
 
const cvec_telem () const
 
PageID child () const
 returns the opaque version More...
 
const lsn_tchild_emlsn () const
 
bool is_ghost_record () const
 

Private Member Functions

 btrec_t (const btrec_t &)
 
btrec_toperator= (const btrec_t &)
 

Private Attributes

bool _ghost_record
 
w_keystr_t _key
 
PageID _child
 
lsn_t _child_emlsn
 
cvec_t _elem
 

Friends

class btree_page_h
 

Detailed Description

Represents a record in BTree.

This class abstracts how we store key/record in our BTree, which might be quite un-intuitive without this class.

Constructor & Destructor Documentation

§ btrec_t() [1/3]

btrec_t::btrec_t ( )
inline

§ btrec_t() [2/3]

btrec_t::btrec_t ( const btree_page_h page,
slotid_t  slot 
)
inline

§ ~btrec_t()

btrec_t::~btrec_t ( )
inline

§ btrec_t() [3/3]

btrec_t::btrec_t ( const btrec_t )
private

Member Function Documentation

§ child()

PageID btrec_t::child ( ) const
inline

returns the opaque version

§ child_emlsn()

const lsn_t& btrec_t::child_emlsn ( ) const
inline

§ elem()

const cvec_t& btrec_t::elem ( ) const
inline

§ elen()

smsize_t btrec_t::elen ( ) const
inline

§ is_ghost_record()

bool btrec_t::is_ghost_record ( ) const
inline

§ key()

const w_keystr_t& btrec_t::key ( ) const
inline

§ operator=()

btrec_t& btrec_t::operator= ( const btrec_t )
private

§ set()

btrec_t & btrec_t::set ( const btree_page_h page,
slotid_t  slot 
)

Load up a reference to the tuple at slot in "page".

Friends And Related Function Documentation

§ btree_page_h

friend class btree_page_h
friend

Member Data Documentation

§ _child

PageID btrec_t::_child
private

§ _elem

cvec_t btrec_t::_elem
private

§ _ghost_record

bool btrec_t::_ghost_record
private

§ _key

w_keystr_t btrec_t::_key
private

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