Zero  0.1.0
Macros | Functions
row.cpp File Reference

: Implementation of the base class for records (rows) of tables in Shore More...

#include "row.h"
#include "table_desc.h"
#include "index_desc.h"
#include <sstream>

Macros

#define VAR_SLOT(start, offset)   ((start)+(offset))
 
#define SET_NULL_FLAG(start, offset)   (*(char*)((start)+((offset)>>3))) &= (1<<((offset)>>3))
 
#define IS_NULL_FLAG(start, offset)   (*(char*)((start)+((offset)>>3)))&(1<<((offset)>>3))
 

Functions

void _load_signed_int (char *dest, char *src, size_t nbytes)
 
void _store_signed_int (char *dest, char *src, size_t nbytes)
 
char const * db_pretty_print (table_row_t const *rec, int, char const *)
 

Detailed Description

: Implementation of the base class for records (rows) of tables in Shore

Author
: Ippokratis Pandis, January 2008
: Caetano Sauer, April 2015

Macro Definition Documentation

§ IS_NULL_FLAG

#define IS_NULL_FLAG (   start,
  offset 
)    (*(char*)((start)+((offset)>>3)))&(1<<((offset)>>3))

§ SET_NULL_FLAG

#define SET_NULL_FLAG (   start,
  offset 
)    (*(char*)((start)+((offset)>>3))) &= (1<<((offset)>>3))

§ VAR_SLOT

#define VAR_SLOT (   start,
  offset 
)    ((start)+(offset))

Function Documentation

§ _load_signed_int()

void _load_signed_int ( char *  dest,
char *  src,
size_t  nbytes 
)

§ _store_signed_int()

void _store_signed_int ( char *  dest,
char *  src,
size_t  nbytes 
)

§ db_pretty_print()

char const* db_pretty_print ( table_row_t const *  rec,
int  ,
char const *   
)