All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions

Description

as_stringmap provides a convenience interface for populating a map with string keys.

+ Collaboration diagram for StringMap:

Functions

static as_valas_stringmap_get (as_map *m, const char *k)
 
static as_bytesas_stringmap_get_bytes (as_map *m, const char *k)
 
static int64_t as_stringmap_get_int64 (as_map *m, const char *k)
 
static as_integeras_stringmap_get_integer (as_map *m, const char *k)
 
static as_listas_stringmap_get_list (as_map *m, const char *k)
 
static as_mapas_stringmap_get_map (as_map *m, const char *k)
 
static char * as_stringmap_get_str (as_map *m, const char *k)
 
static as_stringas_stringmap_get_string (as_map *m, const char *k)
 
static int as_stringmap_set (as_map *m, const char *k, as_val *v)
 
static int as_stringmap_set_bytes (as_map *m, const char *k, as_bytes *v)
 
static int as_stringmap_set_int64 (as_map *m, const char *k, int64_t v)
 
static int as_stringmap_set_integer (as_map *m, const char *k, as_integer *v)
 
static int as_stringmap_set_list (as_map *m, const char *k, as_list *v)
 
static int as_stringmap_set_map (as_map *m, const char *k, as_map *v)
 
static int as_stringmap_set_str (as_map *m, const char *k, const char *v)
 
static int as_stringmap_set_string (as_map *m, const char *k, as_string *v)
 

Function Documentation

static as_val* as_stringmap_get ( as_map m,
const char *  k 
)
inlinestatic

Get the specified key's value as an as_val.

Definition at line 120 of file modules/common/src/include/aerospike/as_stringmap.h.

References as_string::as_string_init(), as_util_hook, and key.

static as_bytes* as_stringmap_get_bytes ( as_map m,
const char *  k 
)
inlinestatic

Get the specified key's value as an as_bytes.

Definition at line 172 of file modules/common/src/include/aerospike/as_stringmap.h.

References as_bytes::as_bytes_fromval(), as_string::as_string_init(), as_util_hook, and key.

static int64_t as_stringmap_get_int64 ( as_map m,
const char *  k 
)
inlinestatic
static as_integer* as_stringmap_get_integer ( as_map m,
const char *  k 
)
inlinestatic

Get the specified key's value as an as_integer.

Definition at line 152 of file modules/common/src/include/aerospike/as_stringmap.h.

References as_integer::as_integer_fromval(), as_string::as_string_init(), as_util_hook, and key.

static as_list* as_stringmap_get_list ( as_map m,
const char *  k 
)
inlinestatic

Get the specified key's value as an as_list.

Definition at line 182 of file modules/common/src/include/aerospike/as_stringmap.h.

References as_list::as_list_fromval(), as_string::as_string_init(), as_util_hook, and key.

static as_map* as_stringmap_get_map ( as_map m,
const char *  k 
)
inlinestatic

Get the specified key's value as an as_map.

Definition at line 192 of file modules/common/src/include/aerospike/as_stringmap.h.

References as_map::as_map_fromval(), as_string::as_string_init(), as_util_hook, and key.

static char* as_stringmap_get_str ( as_map m,
const char *  k 
)
inlinestatic

Get the specified key's value as a NULL terminated string.

Definition at line 141 of file modules/common/src/include/aerospike/as_stringmap.h.

References as_string::as_string_fromval(), as_string::as_string_init(), as_string::as_string_tostring(), as_util_hook, and key.

static as_string* as_stringmap_get_string ( as_map m,
const char *  k 
)
inlinestatic

Get the specified key's value as an as_string.

Definition at line 162 of file modules/common/src/include/aerospike/as_stringmap.h.

References as_string::as_string_fromval(), as_string::as_string_init(), as_util_hook, and key.

static int as_stringmap_set ( as_map m,
const char *  k,
as_val v 
)
inlinestatic

Set the specified key's value to an as_val.

Definition at line 52 of file modules/common/src/include/aerospike/as_stringmap.h.

References as_string_new_strdup(), and as_util_hook.

static int as_stringmap_set_bytes ( as_map m,
const char *  k,
as_bytes v 
)
inlinestatic

Set the specified key's value to an as_bytes.

Definition at line 92 of file modules/common/src/include/aerospike/as_stringmap.h.

References as_string_new_strdup(), and as_util_hook.

static int as_stringmap_set_int64 ( as_map m,
const char *  k,
int64_t  v 
)
inlinestatic

Set the specified key's value to an int64_t.

Definition at line 60 of file modules/common/src/include/aerospike/as_stringmap.h.

References as_integer::as_integer_new(), as_string_new_strdup(), and as_util_hook.

static int as_stringmap_set_integer ( as_map m,
const char *  k,
as_integer v 
)
inlinestatic

Set the specified key's value to an as_integer.

Definition at line 76 of file modules/common/src/include/aerospike/as_stringmap.h.

References as_string_new_strdup(), and as_util_hook.

static int as_stringmap_set_list ( as_map m,
const char *  k,
as_list v 
)
inlinestatic

Set the specified key's value to an as_list.

Definition at line 100 of file modules/common/src/include/aerospike/as_stringmap.h.

References as_string_new_strdup(), and as_util_hook.

static int as_stringmap_set_map ( as_map m,
const char *  k,
as_map v 
)
inlinestatic

Set the specified key's value to an as_map.

Definition at line 108 of file modules/common/src/include/aerospike/as_stringmap.h.

References as_string_new_strdup(), and as_util_hook.

static int as_stringmap_set_str ( as_map m,
const char *  k,
const char *  v 
)
inlinestatic

Set the specified key's value to a NULL terminated string.

Definition at line 68 of file modules/common/src/include/aerospike/as_stringmap.h.

References as_string_new_strdup(), and as_util_hook.

static int as_stringmap_set_string ( as_map m,
const char *  k,
as_string v 
)
inlinestatic

Set the specified key's value to an as_string.

Definition at line 84 of file modules/common/src/include/aerospike/as_stringmap.h.

References as_string_new_strdup(), and as_util_hook.