w_base_t Class Reference

Inherited by option_file_scan_t, option_group_t, option_stream_scan_t, option_t, sthread_base_t, w_bitmap_t, w_error_t, w_hash_i< T, LOCK, K >, w_hash_t< T, LOCK, K >, w_list_i< T, LOCK >, w_list_i< xct_t, w_pthread_lock_t >, and w_vbase_t.

Inheritance diagram for w_base_t:

Inheritance graph
[legend]
List of all members.

Detailed Description

The mother base class for most types.

Attention:
These basic 1,2,4, and 8-byte types predate the now-standard "u8", etc. When these were developed, we used the count to refer to bytes, not bits. So for new users, this might take a bit of getting-used-to.

Definition at line 266 of file w_base.h.

Public Types

typedef unsigned char u_char
typedef unsigned short u_short
typedef unsigned long u_long
typedef char int1_t
typedef u_char uint1_t
typedef short int2_t
typedef u_short uint2_t
typedef int int4_t
typedef u_int uint4_t
typedef uint8_t large_stat_t
typedef uint4_t base_stat_t
typedef float base_float_t
typedef float f4_t
typedef double f8_t
enum  CompareOp
 Comparison Operators.
enum  lock_mode_t
 Lock modes for the Storage Manager. Note: Capital letters are used to match common usage in DB literature Note: Values MUST NOT CHANGE since order is significant. Locking.
enum  lock_duration_t
 Duration for locks Locking.
enum  vote_t
 Votes for two-phase commit.

Static Public Member Functions

static bool is_aligned (size_t sz)
static bool is_aligned (const void *s)
static bool is_big_endian ()
static bool is_little_endian ()
static int8_t strtoi8 (const char *, char **end=0, int base=0)
 Convert string to 8-byte integer.
static uint8_t strtou8 (const char *, char **end=0, int base=0)
 Convert string to 8-byte unsigned integer.
static bool is_finite (const f8_t x)
static bool is_infinite (const f8_t x)
static bool is_nan (const f8_t x)
static bool is_infinite_or_nan (const f8_t x)
static void assert_failed (const char *desc, const char *file, uint4_t line)
 print a message and abort
static void abort ()
 dump core

Static Public Attributes

static const int1_t int1_max = 0x7f
static const int1_t int1_min = (const w_base_t::int1_t) 0x80u
static const int2_t int2_max = 0x7fff
static const int2_t int2_min = (const w_base_t::int2_t) 0x8000u
static const int4_t int4_max = 0x7fffffff
static const int4_t int4_min = 0x80000000
static const int8_t int8_max
static const int8_t int8_min
static const uint1_t uint1_max = 0xff
static const uint1_t uint1_min = 0x0
static const uint2_t uint2_max = 0xffff
static const uint2_t uint2_min = 0x0
static const uint4_t uint4_max = 0xffffffff
static const uint4_t uint4_min = 0x0
static const uint8_t uint8_max
static const uint8_t uint8_min

Friends

ostream & operator<< (ostream &o, const w_base_t &obj)
 standard streams


Member Function Documentation

w_base_t::int8_t w_base_t::strtoi8 ( const char *  ,
char **  end = 0,
int  base = 0 
) [static]

Convert string to 8-byte integer.

strtoi8 acts like strto[u]ll with the following two exceptions: the only bases supported are 0, 8, 10, 16; errno is not set

Definition at line 155 of file w_base.cpp.

Referenced by option_t::set_value_int8().

Here is the caller graph for this function:

w_base_t::uint8_t w_base_t::strtou8 ( const char *  ,
char **  end = 0,
int  base = 0 
) [static]

Convert string to 8-byte unsigned integer.

strtou8 acts like strto[u]ll with the following two exceptions: the only bases supported are 0, 8, 10, 16; errno is not set

Definition at line 169 of file w_base.cpp.


The documentation for this class was generated from the following files:
Generated on Wed Jul 7 17:22:43 2010 for Shore Storage Manager by  doxygen 1.4.7