Loading...
Searching...
No Matches
Functions
as_stringmap.h File Reference
#include <aerospike/as_bytes.h>
#include <aerospike/as_integer.h>
#include <aerospike/as_list.h>
#include <aerospike/as_map.h>
#include <aerospike/as_std.h>
#include <aerospike/as_string.h>
#include <aerospike/as_util.h>
#include <aerospike/as_val.h>
+ Include dependency graph for as_stringmap.h:

Go to the source code of this file.

Functions

static as_valas_stringmap_get (as_map *m, const char *k)
 
static as_doubleas_stringmap_get_as_double (as_map *m, const char *k)
 
static as_bytesas_stringmap_get_bytes (as_map *m, const char *k)
 
static double as_stringmap_get_double (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_as_double (as_map *m, const char *k, as_double *v)
 
static int as_stringmap_set_bytes (as_map *m, const char *k, as_bytes *v)
 
static int as_stringmap_set_double (as_map *m, const char *k, double 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

◆ as_stringmap_get()

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 124 of file as_stringmap.h.

References as_string_init(), as_util_hook, and m.

◆ as_stringmap_get_as_double()

static as_double * as_stringmap_get_as_double ( as_map * m,
const char * k )
inlinestatic

Get the specified key's value as an as_double.

Definition at line 177 of file as_stringmap.h.

References as_double_fromval(), as_string_init(), as_util_hook, and m.

◆ as_stringmap_get_bytes()

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 197 of file as_stringmap.h.

References as_bytes_fromval(), as_string_init(), as_util_hook, and m.

◆ as_stringmap_get_double()

static double as_stringmap_get_double ( as_map * m,
const char * k )
inlinestatic

Get the specified key's value as a double.

Definition at line 145 of file as_stringmap.h.

References as_double_fromval(), as_string_init(), as_util_hook, m, and as_double::value.

◆ as_stringmap_get_int64()

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

Get the specified key's value as an int64_t.

Definition at line 134 of file as_stringmap.h.

References as_integer_fromval(), as_integer_toint(), as_string_init(), as_util_hook, and m.

◆ as_stringmap_get_integer()

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 167 of file as_stringmap.h.

References as_integer_fromval(), as_string_init(), as_util_hook, and m.

◆ as_stringmap_get_list()

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 207 of file as_stringmap.h.

References as_list_fromval(), as_string_init(), as_util_hook, and m.

◆ as_stringmap_get_map()

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 217 of file as_stringmap.h.

References as_map_fromval(), as_string_init(), as_util_hook, and m.

◆ as_stringmap_get_str()

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 156 of file as_stringmap.h.

References as_string_fromval(), as_string_init(), as_string_tostring(), as_util_hook, and m.

◆ as_stringmap_get_string()

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 187 of file as_stringmap.h.

References as_string_fromval(), as_string_init(), as_util_hook, and m.

◆ as_stringmap_set()

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 40 of file as_stringmap.h.

References as_string_new_strdup(), as_util_hook, and m.

◆ as_stringmap_set_as_double()

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

Set the specified key's value to an as_integer.

Definition at line 80 of file as_stringmap.h.

References as_string_new_strdup(), as_util_hook, and m.

◆ as_stringmap_set_bytes()

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 96 of file as_stringmap.h.

References as_string_new_strdup(), as_util_hook, and m.

◆ as_stringmap_set_double()

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

Set the specified key's value to a double.

Definition at line 56 of file as_stringmap.h.

References as_double_new(), as_string_new_strdup(), as_util_hook, and m.

◆ as_stringmap_set_int64()

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 48 of file as_stringmap.h.

References as_integer_new(), as_string_new_strdup(), as_util_hook, and m.

◆ as_stringmap_set_integer()

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 72 of file as_stringmap.h.

References as_string_new_strdup(), as_util_hook, and m.

◆ as_stringmap_set_list()

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 104 of file as_stringmap.h.

References as_string_new_strdup(), as_util_hook, and m.

◆ as_stringmap_set_map()

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 112 of file as_stringmap.h.

References as_string_new_strdup(), as_util_hook, and m.

◆ as_stringmap_set_str()

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 64 of file as_stringmap.h.

References as_string_new_strdup(), as_util_hook, and m.

◆ as_stringmap_set_string()

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 88 of file as_stringmap.h.

References as_string_new_strdup(), as_util_hook, and m.