![]() |
#include <citrusleaf/cf_atomic.h>
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | as_val |
Macros | |
#define | as_val_destroy(__v) ( as_val_val_destroy((as_val *)__v) ) |
#define | as_val_hashcode(__v) ( as_val_val_hashcode((as_val *)__v) ) |
#define | as_val_reserve(__v) ( as_val_val_reserve((as_val *)__v) ) |
#define | as_val_tostring(__v) ( as_val_val_tostring((as_val *)__v) ) |
#define | as_val_type(__v) (__v ? ((as_val *)__v)->type : AS_UNDEF) |
Enumerations | |
enum | as_val_t |
Functions | |
enum as_val_t | __attribute__ ((packed)) as_val_t |
static as_val * | as_val_cons (as_val *val, as_val_t type, bool free) |
static void | as_val_init (as_val *v, as_val_t type, bool free) |
as_val * | as_val_val_destroy (as_val *) |
uint32_t | as_val_val_hashcode (const as_val *) |
as_val * | as_val_val_reserve (as_val *) |
char * | as_val_val_tostring (const as_val *) |
Variables | |
AS_BOOLEAN = 2 | |
AS_BYTES = 9 | |
AS_INTEGER = 3 | |
AS_LIST = 5 | |
AS_MAP = 6 | |
AS_NIL = 1 | |
AS_PAIR = 8 | |
AS_REC = 7 | |
AS_STRING = 4 | |
AS_UNDEF = 0 | |
AS_UNKNOWN = 0 | |
AS_VAL_T_MAX | |
#define as_val_destroy | ( | __v) | ( as_val_val_destroy((as_val *)__v) ) |
Decrement the as_val.count
of a value. If as_val.count
reaches 0 (zero) and as_val.free
is true, then free the as_val
instance.
__v | The as_val to be decremented. |
as_val.count
> 0. Otherwise NULL. Definition at line 109 of file target/Linux-x86_64/include/aerospike/as_val.h.
#define as_val_hashcode | ( | __v) | ( as_val_val_hashcode((as_val *)__v) ) |
Get the hashcode value for the value.
__v | The as_val to get the hashcode value for. |
Definition at line 118 of file target/Linux-x86_64/include/aerospike/as_val.h.
#define as_val_reserve | ( | __v) | ( as_val_val_reserve((as_val *)__v) ) |
Increment the as_val.count
of a value.
__v | The as_val to be incremented. |
Definition at line 99 of file target/Linux-x86_64/include/aerospike/as_val.h.
#define as_val_tostring | ( | __v) | ( as_val_val_tostring((as_val *)__v) ) |
Get the string representation of the value.
__v | The as_val to get the string value for. |
Definition at line 127 of file target/Linux-x86_64/include/aerospike/as_val.h.
Returns the as_val.type
of a value.
__v | The as_val to get the type of |
Definition at line 90 of file target/Linux-x86_64/include/aerospike/as_val.h.
enum as_val_t |
as_val types
Definition at line 37 of file target/Linux-x86_64/include/aerospike/as_val.h.
Initialize an as_val. Should only be used by subtypes.
Definition at line 181 of file target/Linux-x86_64/include/aerospike/as_val.h.
References as_val::count, as_val::free, as_val::type, and type.
Initialize an as_val. Should only be used by subtypes.
Definition at line 168 of file target/Linux-x86_64/include/aerospike/as_val.h.
References as_val::count, as_val::free, as_val::type, and type.
Helper function for decrementing the count of a value, and if count==0 and free==true, then free the value.
|
private |
Helper function for calculating the hash value.
Helper function for incrementing the count of a value.
|
private |
Helper function for generating the string representation.
@ AS_BOOLEAN = 2 |
Definition at line 210 of file target/Linux-x86_64/include/aerospike/as_val.h.
@ AS_BYTES = 9 |
Definition at line 217 of file target/Linux-x86_64/include/aerospike/as_val.h.
@ AS_INTEGER = 3 |
Definition at line 211 of file target/Linux-x86_64/include/aerospike/as_val.h.
@ AS_LIST = 5 |
Definition at line 213 of file target/Linux-x86_64/include/aerospike/as_val.h.
@ AS_MAP = 6 |
Definition at line 214 of file target/Linux-x86_64/include/aerospike/as_val.h.
@ AS_NIL = 1 |
Definition at line 209 of file target/Linux-x86_64/include/aerospike/as_val.h.
@ AS_PAIR = 8 |
Definition at line 216 of file target/Linux-x86_64/include/aerospike/as_val.h.
@ AS_REC = 7 |
Definition at line 215 of file target/Linux-x86_64/include/aerospike/as_val.h.
@ AS_STRING = 4 |
Definition at line 212 of file target/Linux-x86_64/include/aerospike/as_val.h.
@ AS_UNDEF = 0 |
Definition at line 207 of file target/Linux-x86_64/include/aerospike/as_val.h.
@ AS_UNKNOWN = 0 |
Definition at line 208 of file target/Linux-x86_64/include/aerospike/as_val.h.
@ AS_VAL_T_MAX |
Definition at line 217 of file target/Linux-x86_64/include/aerospike/as_val.h.