struct_mpz_array_t Struct Reference

Defines an array of mpz_t elements from the GMP library. More...

#include <lib/utils/include/array.h>


Data Fields

uint32_t alloced
uint32_t length
mpz_t * data


Detailed Description

Defines an array of mpz_t elements from the GMP library.

This structure defines a special kind of mpz array which knows its current length and its allocated memory space.

Definition at line 857 of file array.h.


Field Documentation

Memory space allocated for this array's data field, given as a multiple of sizeof(mpz_t). This is the maximum number of mpz_t elements that the array can accommodate.

Definition at line 863 of file array.h.

Current number of "useful" mpz_t elements hold in the array pointed by the structure's data field.

Warning:
Prior to version 1.2, the length field also indicated which positions had been mpz_init'ed in the data field. Since version 1.2 this is no longer true. Now all positions in the data array are mpz_init'ed and length only gives which part of the array is useful from the client standpoint.

Definition at line 874 of file array.h.

Referenced by is_in_sorted_mpz_array().

Array of mpz_t elements whose size is given by the alloced field.

Definition at line 879 of file array.h.


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

Generated on Fri Jun 17 11:10:12 2011 for TIFA by Doxygen 1.5.5