[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

Arrays of tree constraints of level 1

Function: ap_tcons1_array_t ap_tcons1_array_make (ap_environment_t* env, size_t size)
Allocate an array of size constraints. The constraints are initialized with NULL pointers, so that ap_tcons1_array_free may be safely called.
Function: void ap_tcons1_array_clear (ap_tcons1_array_t* array)
Clear the constraints of the array, and then the array itself.
Function: void ap_tcons1_array_fprint (FILE* stream, ap_tcons1_array_t* array)
Function: void ap_tcons1_array_print (ap_tcons1_array_t* array)
Printing.

Function: size_t ap_tcons1_array_size (ap_tcons1_array_t* array)
Return the size of the array.

Function: ap_environment_t* ap_tcons1_array_envref (ap_tcons1_array_t* array)
Return a reference to the environment of the array. Do not free it.

Function: void ap_tcons1_array_clear_index (ap_tcons1_array_t* array, size_t index)
Clear the constraint at index index and set pointers to NULL.

Function: ap_tcons1_t ap_tcons1_array_get (ap_tcons1_array_t* array, size_t index)
Return the linear constraint of the given index Nothing is duplicated, and the result should never be cleared. Modifying the argument or the result is equivalent, except for change of environments.

Function: bool ap_tcons1_array_set (ap_tcons1_array_t* array, size_t index, ap_tcons1_t* cons)
Fill the index of the array with the constraint. Assumes ap_environment_is_eq(array->env,cons->env). Nothing is duplicated. The argument should never be cleared (its environment is dereferenced). If a constraint was already stored, it is first cleared. Return true iff problem (index or array->env!=cons->env)

Function: bool ap_tcons1_array_extend_environment_with (ap_tcons1_array_t* array, ap_environment_t* nenv)
Function: bool ap_tcons1_array_extend_environment (ap_tcons1_array_t* narray, ap_tcons1_array_t* array, ap_environment_t* nenv)
Change current environment with a super-environment. Return true if nenv is not a superenvironment of array->env.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on September, 10 2009 using texi2html