All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Macros | Functions
as_pair.h File Reference
#include <aerospike/as_std.h>
#include <aerospike/as_util.h>
#include <aerospike/as_val.h>
+ Include dependency graph for as_pair.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  as_pair
 

Macros

#define pair_new(a, b)   as_pair_new((as_val *) a, (as_val *) b)
 

Functions

static as_valas_pair_1 (as_pair *pair)
 
static as_valas_pair_2 (as_pair *pair)
 
static void as_pair_destroy (as_pair *pair)
 
static as_pairas_pair_fromval (const as_val *v)
 
AS_EXTERN as_pairas_pair_init (as_pair *pair, as_val *_1, as_val *_2)
 
AS_EXTERN as_pairas_pair_new (as_val *_1, as_val *_2)
 
static as_valas_pair_toval (const as_pair *pair)
 
AS_EXTERN void as_pair_val_destroy (as_val *)
 
AS_EXTERN uint32_t as_pair_val_hashcode (const as_val *)
 
AS_EXTERN char * as_pair_val_tostring (const as_val *)
 

Macro Definition Documentation

#define pair_new (   a,
 
)    as_pair_new((as_val *) a, (as_val *) b)

Definition at line 32 of file as_pair.h.

Function Documentation

static as_val * as_pair_1 ( as_pair pair)
inlinestatic

Get the first value of the pair

Definition at line 111 of file as_pair.h.

static as_val* as_pair_2 ( as_pair pair)
inlinestatic

Get the second value of the pair

Definition at line 119 of file as_pair.h.

static void as_pair_destroy ( as_pair pair)
inlinestatic

Destroy the as_pair and release associated resources.

Definition at line 97 of file as_pair.h.

References as_val_destroy.

static as_pair * as_pair_fromval ( const as_val v)
inlinestatic

Convert from an as_val.

Definition at line 143 of file as_pair.h.

References AS_PAIR, and as_util_fromval.

AS_EXTERN as_pair * as_pair_init ( as_pair pair,
as_val _1,
as_val _2 
)

Initializes a stack allocated as_pair.

Parameters
pairThe pair to initialize.
_1The first value.
_2The second value.
Returns
On success, the new pair. Otherwise NULL.
AS_EXTERN as_pair * as_pair_new ( as_val _1,
as_val _2 
)

Create and initializes a new heap allocated as_pair.

Parameters
_1The first value.
_2The second value.
Returns
On success, the new pair. Otherwise NULL.
static as_val * as_pair_toval ( const as_pair pair)
inlinestatic

Convert to an as_val.

Definition at line 133 of file as_pair.h.

AS_EXTERN void as_pair_val_destroy ( as_val )
private

Internal helper function for destroying an as_val.

AS_EXTERN uint32_t as_pair_val_hashcode ( const as_val )
private

Internal helper function for getting the hashcode of an as_val.

AS_EXTERN char* as_pair_val_tostring ( const as_val )
private

Internal helper function for getting the string representation of an as_val.