Zero  0.1.0
Classes | Typedefs | Functions | Variables
basics.h File Reference
#include "w_defines.h"
#include "w_base.h"
#include <atomic>

Go to the source code of this file.

Classes

struct  GeneralRecordIds
 Defines constant values/methods for general_recordid_t. More...
 

Typedefs

typedef uint32_t smsize_t
 
typedef uint32_t PageID
 
typedef uint32_t StoreID
 
typedef int32_t run_number_t
 
typedef int16_t slotid_t
 
typedef uint32_t bf_idx
 
typedef std::atomic< uint32_t > atomic_bf_idx
 
typedef std::pair< bf_idx, bf_idxbf_idx_pair
 
typedef std::pair< std::atomic< bf_idx >, std::atomic< bf_idx > > atomic_bf_idx_pair
 
typedef int16_t general_recordid_t
 An integer to point to any record in B-tree pages. More...
 

Functions

int u4i (uint32_t x)
 
bool is_aligned (smsize_t sz)
 
bool is_aligned (const void *p)
 

Variables

const int32_t max_int4 = 0x7fffffff
 
const int32_t max_int4_minus1 = max_int4 - 1
 
const int32_t min_int4 = 0x80000000
 
const uint16_t max_uint2 = 0xffff
 
const uint16_t min_uint2 = 0
 
const uint32_t max_uint4 = 0xffffffff
 
const uint32_t min_uint4 = 0
 

Typedef Documentation

§ atomic_bf_idx

typedef std::atomic<uint32_t> atomic_bf_idx

§ atomic_bf_idx_pair

typedef std::pair<std::atomic<bf_idx>, std::atomic<bf_idx> > atomic_bf_idx_pair

§ bf_idx

typedef uint32_t bf_idx

§ bf_idx_pair

typedef std::pair<bf_idx, bf_idx> bf_idx_pair

§ general_recordid_t

typedef int16_t general_recordid_t

An integer to point to any record in B-tree pages.

-1 if foster-child, 0 if pid0, 1 or larger if real child. Same as slotid_t, but used to avoid confusion.

§ PageID

typedef uint32_t PageID

§ run_number_t

typedef int32_t run_number_t

§ slotid_t

typedef int16_t slotid_t

§ smsize_t

typedef uint32_t smsize_t

§ StoreID

typedef uint32_t StoreID

Function Documentation

§ is_aligned() [1/2]

bool is_aligned ( smsize_t  sz)
inline

§ is_aligned() [2/2]

bool is_aligned ( const void *  p)
inline

§ u4i()

int u4i ( uint32_t  x)
inline

Variable Documentation

§ max_int4

const int32_t max_int4 = 0x7fffffff

§ max_int4_minus1

const int32_t max_int4_minus1 = max_int4 - 1

§ max_uint2

const uint16_t max_uint2 = 0xffff

§ max_uint4

const uint32_t max_uint4 = 0xffffffff

§ min_int4

const int32_t min_int4 = 0x80000000

§ min_uint2

const uint16_t min_uint2 = 0

§ min_uint4

const uint32_t min_uint4 = 0