btree_t Derived Type

type, public :: btree_t


Components

Type Visibility Attributes Name Initial
integer, public :: unit = -1

Open Fortran unit, -1 if closed

integer, public :: page_size = 0

Bytes per page (derived from key_len)

integer, public :: key_len = 0

Fixed key length in bytes

integer, public :: root = 0

Root page id

integer, public :: free_head = 0

Head of the free-page list (0 = none)

integer, public :: npages = 0

Highest page id ever allocated

integer, public :: first_leaf = 0

Leftmost leaf page id (iteration start)

integer(kind=int64), public :: nentries = 0_int64

Number of live (key,payload) entries

logical, public :: writable = .false.

Opened read-write (.false. = read-only)

procedure(bt_journal_hook), public, pointer, nopass :: jhook => null()

Pre-write undo hook

class(*), public, pointer :: jctx => null()

Hook context

integer, public :: jbase = 0

Page high-water when the hook was installed