All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
as_pair Struct Reference

Detailed Description

A Pair of values: (_1,_2)

Definition at line 42 of file as_pair.h.

#include "as_pair.h"

+ Collaboration diagram for as_pair:

Related Symbols

(Note that these are not member symbols.)

static as_valas_pair_1 (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)
 

Friends And Related Symbol Documentation

◆ as_pair_1()

static as_val * as_pair_1 ( as_pair * pair)
related

Get the first value of the pair

Definition at line 111 of file as_pair.h.

◆ as_pair_destroy()

static void as_pair_destroy ( as_pair * pair)
related

Destroy the as_pair and release associated resources.

Definition at line 97 of file as_pair.h.

References as_val_destroy.

◆ as_pair_fromval()

static as_pair * as_pair_fromval ( const as_val * v)
related

Convert from an as_val.

Definition at line 143 of file as_pair.h.

References AS_PAIR, and as_util_fromval.

◆ as_pair_init()

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

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_pair_new()

AS_EXTERN as_pair * as_pair_new ( as_val * _1,
as_val * _2 )
related

Create and initializes a new heap allocated as_pair.

Parameters
_1The first value.
_2The second value.
Returns
On success, the new pair. Otherwise NULL.

◆ as_pair_toval()

static as_val * as_pair_toval ( const as_pair * pair)
related

Convert to an as_val.

Definition at line 133 of file as_pair.h.


The documentation for this struct was generated from the following file: