All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Related Functions
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 Functions

(Note that these are not member functions.)

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 Function Documentation

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.

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.

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.

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_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.
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: