StaticValue.h File Reference


Detailed Description

Optimized representations of static SValue constants.

#include <support/Debug.h>
#include <support/SupportDefs.h>
#include <support/SharedBuffer.h>
#include <support/TypeConstants.h>

Go to the source code of this file.

Classes

struct  static_bool_value
struct  static_float_value
struct  static_int32_value
struct  static_large_string_value
struct  static_large_value
struct  static_small_string_value
struct  static_small_value

Defines

#define B_CONST_FLOAT_VALUE(ident, val, prefix)
 Convenience macro for making a static SValue containing a float.
#define B_CONST_INT32_VALUE(ident, val, prefix)
 Convenience macro for making a static SValue containing an int32_t.
#define B_CONST_STRING   B_CONST_STRING_VALUE_LARGE
#define B_CONST_STRING_VALUE_12   B_CONST_STRING_VALUE_LARGE
#define B_CONST_STRING_VALUE_16   B_CONST_STRING_VALUE_LARGE
#define B_CONST_STRING_VALUE_20   B_CONST_STRING_VALUE_LARGE
#define B_CONST_STRING_VALUE_24   B_CONST_STRING_VALUE_LARGE
#define B_CONST_STRING_VALUE_28   B_CONST_STRING_VALUE_LARGE
#define B_CONST_STRING_VALUE_32   B_CONST_STRING_VALUE_LARGE
#define B_CONST_STRING_VALUE_36   B_CONST_STRING_VALUE_LARGE
#define B_CONST_STRING_VALUE_4   B_CONST_STRING_VALUE_SMALL
#define B_CONST_STRING_VALUE_40   B_CONST_STRING_VALUE_LARGE
#define B_CONST_STRING_VALUE_44   B_CONST_STRING_VALUE_LARGE
#define B_CONST_STRING_VALUE_8   B_CONST_STRING_VALUE_LARGE
#define B_CONST_STRING_VALUE_LARGE(ident, string, prefix)
 Convenience macro for making a static SValue containing a string of 5 or more (including the terminating \0) characters.
#define B_CONST_STRING_VALUE_SMALL(ident, string, prefix)
 Convenience macro for making a static SValue containing a string of 4 or fewer (including the terminating \0) characters.
#define B_STATIC_FLOAT_VALUE(ident, val, prefix)
 Convenience macro for making a static SValue containing a float.
#define B_STATIC_INT32_VALUE(ident, val, prefix)
 Convenience macro for making a static SValue containing an int32_t.
#define B_STATIC_STRING   B_STATIC_STRING_VALUE_LARGE
#define B_STATIC_STRING_VALUE_12   B_STATIC_STRING_VALUE_LARGE
#define B_STATIC_STRING_VALUE_16   B_STATIC_STRING_VALUE_LARGE
#define B_STATIC_STRING_VALUE_20   B_STATIC_STRING_VALUE_LARGE
#define B_STATIC_STRING_VALUE_24   B_STATIC_STRING_VALUE_LARGE
#define B_STATIC_STRING_VALUE_28   B_STATIC_STRING_VALUE_LARGE
#define B_STATIC_STRING_VALUE_32   B_STATIC_STRING_VALUE_LARGE
#define B_STATIC_STRING_VALUE_36   B_STATIC_STRING_VALUE_LARGE
#define B_STATIC_STRING_VALUE_4   B_STATIC_STRING_VALUE_SMALL
#define B_STATIC_STRING_VALUE_40   B_STATIC_STRING_VALUE_LARGE
#define B_STATIC_STRING_VALUE_44   B_STATIC_STRING_VALUE_LARGE
#define B_STATIC_STRING_VALUE_8   B_STATIC_STRING_VALUE_LARGE
#define B_STATIC_STRING_VALUE_LARGE(ident, string, prefix)
 Convenience macro for making a static SValue containing a string of 5 or more (including the terminating \0) characters.
#define B_STATIC_STRING_VALUE_SMALL(ident, string, prefix)
 Convenience macro for making a static SValue containing a string of 4 or fewer (including the terminating \0) characters.
#define PADDED_STRING_LENGTH(string)   sizeof(string)+((4-(sizeof(string)%4)) & 0x3)
#define STRING_ASSERT(x)   inline void string_assert() { STATIC_ASSERT(x); }

Typedefs

typedef const static_bool_value value_cbool
typedef const static_float_value value_cfloat
typedef const static_int32_value value_cint32
typedef const static_large_string_value value_clrg
typedef const static_small_string_value value_csml

Functions

void palmsource_dec_package_ref ()
void palmsource_inc_package_ref ()


Define Documentation

#define B_CONST_STRING   B_CONST_STRING_VALUE_LARGE
 

#define B_CONST_STRING_VALUE_12   B_CONST_STRING_VALUE_LARGE
 

#define B_CONST_STRING_VALUE_16   B_CONST_STRING_VALUE_LARGE
 

#define B_CONST_STRING_VALUE_20   B_CONST_STRING_VALUE_LARGE
 

#define B_CONST_STRING_VALUE_24   B_CONST_STRING_VALUE_LARGE
 

#define B_CONST_STRING_VALUE_28   B_CONST_STRING_VALUE_LARGE
 

#define B_CONST_STRING_VALUE_32   B_CONST_STRING_VALUE_LARGE
 

#define B_CONST_STRING_VALUE_36   B_CONST_STRING_VALUE_LARGE
 

#define B_CONST_STRING_VALUE_4   B_CONST_STRING_VALUE_SMALL
 

#define B_CONST_STRING_VALUE_40   B_CONST_STRING_VALUE_LARGE
 

#define B_CONST_STRING_VALUE_44   B_CONST_STRING_VALUE_LARGE
 

#define B_CONST_STRING_VALUE_8   B_CONST_STRING_VALUE_LARGE
 

#define B_STATIC_STRING   B_STATIC_STRING_VALUE_LARGE
 

#define B_STATIC_STRING_VALUE_12   B_STATIC_STRING_VALUE_LARGE
 

#define B_STATIC_STRING_VALUE_16   B_STATIC_STRING_VALUE_LARGE
 

#define B_STATIC_STRING_VALUE_20   B_STATIC_STRING_VALUE_LARGE
 

#define B_STATIC_STRING_VALUE_24   B_STATIC_STRING_VALUE_LARGE
 

#define B_STATIC_STRING_VALUE_28   B_STATIC_STRING_VALUE_LARGE
 

#define B_STATIC_STRING_VALUE_32   B_STATIC_STRING_VALUE_LARGE
 

#define B_STATIC_STRING_VALUE_36   B_STATIC_STRING_VALUE_LARGE
 

#define B_STATIC_STRING_VALUE_4   B_STATIC_STRING_VALUE_SMALL
 

#define B_STATIC_STRING_VALUE_40   B_STATIC_STRING_VALUE_LARGE
 

#define B_STATIC_STRING_VALUE_44   B_STATIC_STRING_VALUE_LARGE
 

#define B_STATIC_STRING_VALUE_8   B_STATIC_STRING_VALUE_LARGE