Zero  0.1.0
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
w_base_t Class Reference

#include <w_base.h>

Inheritance diagram for w_base_t:
w_list_i< T, LOCK > w_list_i< xct_t, mcs_lock > w_vbase_t w_list_const_i< T, LOCK > w_list_base_t w_list_t< T, LOCK > w_list_t< xct_t, mcs_lock > w_keyed_list_t< T, LOCK, K > w_keyed_list_t< xct_t, mcs_lock, tid_t > w_ascend_list_t< T, LOCK, K > w_descend_list_t< T, LOCK, K > w_descend_list_t< xct_t, mcs_lock, tid_t >

Public Types

enum  CompareOp {
  badOp = 0x0, eqOp = 0x1, gtOp = 0x2, geOp = 0x3,
  ltOp = 0x4, leOp = 0x5, NegInf = 0x100, eqNegInf,
  gtNegInf, geNegInf, ltNegInf, leNegInf,
  PosInf = 0x400, eqPosInf, gtPosInf, gePosInf,
  ltPosInf, lePosInf
}
 Comparison Operators. More...
 
typedef unsigned char u_char
 
typedef unsigned short u_short
 
typedef unsigned long u_long
 
typedef uint64_t large_stat_t
 
typedef int32_t base_stat_t
 
typedef float base_float_t
 
typedef float f4_t
 
typedef double f8_t
 

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 int64_t strtoi8 (const char *, char **end=0, int base=0)
 Convert string to 8-byte integer. More...
 
static uint64_t strtou8 (const char *, char **end=0, int base=0)
 Convert string to 8-byte unsigned integer. More...
 
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 uint16_t w_ntohs (uint16_t)
 
static uint16_t w_htons (uint16_t)
 
static uint32_t w_ntohl (uint32_t)
 
static uint32_t w_htonl (uint32_t)
 
static void assert_failed (const char *desc, const char *file, uint32_t line)
 print a message and abort More...
 
static void abort ()
 dump core More...
 

Static Public Attributes

static const int8_t int1_max = 0x7f
 
static const int8_t int1_min = (int8_t)0x80u
 
static const int16_t int2_max = 0x7fff
 
static const int16_t int2_min = (int16_t)0x8000u
 
static const int32_t int4_max = 0x7fffffff
 
static const int32_t int4_min = 0x80000000
 
static const int64_t int8_max
 
static const int64_t int8_min
 
static const uint8_t uint1_max = 0xff
 
static const uint8_t uint1_min = 0x0
 
static const uint16_t uint2_max = 0xffff
 
static const uint16_t uint2_min = 0x0
 
static const uint32_t uint4_max = 0xffffffff
 
static const uint32_t uint4_min = 0x0
 
static const uint64_t uint8_max
 
static const uint64_t uint8_min
 

Detailed Description

The mother base class for most types.

Member Typedef Documentation

§ base_float_t

typedef float w_base_t::base_float_t

§ base_stat_t

typedef int32_t w_base_t::base_stat_t

§ f4_t

typedef float w_base_t::f4_t

§ f8_t

typedef double w_base_t::f8_t

§ large_stat_t

typedef uint64_t w_base_t::large_stat_t

§ u_char

typedef unsigned char w_base_t::u_char

§ u_long

typedef unsigned long w_base_t::u_long

§ u_short

typedef unsigned short w_base_t::u_short

Member Enumeration Documentation

§ CompareOp

Comparison Operators.

Enumerator
badOp 
eqOp 
gtOp 
geOp 
ltOp 
leOp 
NegInf 
eqNegInf 
gtNegInf 
geNegInf 
ltNegInf 
leNegInf 
PosInf 
eqPosInf 
gtPosInf 
gePosInf 
ltPosInf 
lePosInf 

Member Function Documentation

§ abort()

w_base_t::abort ( )
static

dump core

§ assert_failed()

void w_base_t::assert_failed ( const char *  desc,
const char *  file,
uint32_t  line 
)
static

print a message and abort

§ is_aligned() [1/2]

bool w_base_t::is_aligned ( size_t  sz)
inlinestatic

§ is_aligned() [2/2]

bool w_base_t::is_aligned ( const void *  s)
inlinestatic

§ is_big_endian()

bool w_base_t::is_big_endian ( )
inlinestatic

§ is_finite()

bool w_base_t::is_finite ( const f8_t  x)
static

§ is_infinite()

bool w_base_t::is_infinite ( const f8_t  x)
static

§ is_infinite_or_nan()

bool w_base_t::is_infinite_or_nan ( const f8_t  x)
static

§ is_little_endian()

bool w_base_t::is_little_endian ( )
inlinestatic

§ is_nan()

bool w_base_t::is_nan ( const f8_t  x)
static

§ strtoi8()

int64_t w_base_t::strtoi8 ( const char *  str,
char **  end = 0,
int  base = 0 
)
static

Convert string to 8-byte integer.

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

§ strtou8()

uint64_t w_base_t::strtou8 ( const char *  str,
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

§ w_htonl()

uint32_t w_base_t::w_htonl ( uint32_t  host)
static

§ w_htons()

uint16_t w_base_t::w_htons ( uint16_t  host)
static

§ w_ntohl()

uint32_t w_base_t::w_ntohl ( uint32_t  net)
static

§ w_ntohs()

uint16_t w_base_t::w_ntohs ( uint16_t  net)
static

Member Data Documentation

§ int1_max

const int8_t w_base_t::int1_max = 0x7f
static

§ int1_min

const int8_t w_base_t::int1_min = (int8_t)0x80u
static

§ int2_max

const int16_t w_base_t::int2_max = 0x7fff
static

§ int2_min

const int16_t w_base_t::int2_min = (int16_t)0x8000u
static

§ int4_max

const int32_t w_base_t::int4_max = 0x7fffffff
static

§ int4_min

const int32_t w_base_t::int4_min = 0x80000000
static

§ int8_max

const int64_t w_base_t::int8_max
static
Initial value:
=
LONGLONGCONSTANT(0x7fffffff)

§ int8_min

const int64_t w_base_t::int8_min
static
Initial value:
=
LONGLONGCONSTANT(0x80000000)

§ uint1_max

const uint8_t w_base_t::uint1_max = 0xff
static

§ uint1_min

const uint8_t w_base_t::uint1_min = 0x0
static

§ uint2_max

const uint16_t w_base_t::uint2_max = 0xffff
static

§ uint2_min

const uint16_t w_base_t::uint2_min = 0x0
static

§ uint4_max

const uint32_t w_base_t::uint4_max = 0xffffffff
static

§ uint4_min

const uint32_t w_base_t::uint4_min = 0x0
static

§ uint8_max

const uint64_t w_base_t::uint8_max
static
Initial value:
=
ULONGLONGCONSTANT(0xffffffff)

§ uint8_min

const uint64_t w_base_t::uint8_min
static
Initial value:

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