|
PPL C Language Interface 2.0
|
Types and functions for generator systems. More...
#include <ppl_c_header.h>
Related Symbols | |
(Note that these are not member symbols.) | |
Constructors, Assignment and Destructor | |
| int | ppl_new_Generator_System (ppl_Generator_System_t *pgs) |
Builds an empty system of generators and writes a handle to it at address pgs. | |
| int | ppl_new_Generator_System_from_Generator (ppl_Generator_System_t *pgs, ppl_const_Generator_t g) |
Builds the singleton generator system containing only a copy of generator g; writes a handle for the newly created system at address pgs. | |
| int | ppl_new_Generator_System_from_Generator_System (ppl_Generator_System_t *pgs, ppl_const_Generator_System_t gs) |
Builds a generator system that is a copy of gs; writes a handle for the newly created system at address pgs. | |
| int | ppl_assign_Generator_System_from_Generator_System (ppl_Generator_System_t dst, ppl_const_Generator_System_t src) |
Assigns a copy of the generator system src to dst. | |
| int | ppl_delete_Generator_System (ppl_const_Generator_System_t gs) |
Invalidates the handle gs: this makes sure the corresponding resources will eventually be released. | |
Functions that Do Not Modify the Generator System | |
| int | ppl_Generator_System_space_dimension (ppl_const_Generator_System_t gs, ppl_dimension_type *m) |
Writes to m the dimension of the vector space enclosing gs. | |
| int | ppl_Generator_System_empty (ppl_const_Generator_System_t gs) |
Returns a positive integer if gs contains no generators; returns 0 otherwise. | |
| int | ppl_Generator_System_begin (ppl_const_Generator_System_t gs, ppl_Generator_System_const_iterator_t git) |
Assigns to git a const iterator "pointing" to the beginning of the generator system gs. | |
| int | ppl_Generator_System_end (ppl_const_Generator_System_t gs, ppl_Generator_System_const_iterator_t git) |
Assigns to git a const iterator "pointing" past the end of the generator system gs. | |
| int | ppl_Generator_System_OK (ppl_const_Generator_System_t gs) |
Returns a positive integer if gs is well formed, i.e., if it satisfies all its implementation invariants; returns 0 and perhaps makes some noise if gs is broken. Useful for debugging purposes. | |
Functions that May Modify the Generator System | |
| int | ppl_Generator_System_clear (ppl_Generator_System_t gs) |
Removes all the generators from the generator system gs and sets its space dimension to 0. | |
| int | ppl_Generator_System_insert_Generator (ppl_Generator_System_t gs, ppl_const_Generator_t g) |
Inserts a copy of the generator g into gs; the space dimension is increased, if necessary. | |
Input/Output Functions | |
| int | ppl_io_print_Generator_System (ppl_const_Generator_System_t x) |
Prints x to stdout. | |
| int | ppl_io_fprint_Generator_System (FILE *stream, ppl_const_Generator_System_t x) |
Prints x to the given output stream. | |
| int | ppl_io_asprint_Generator_System (char **strp, ppl_const_Generator_System_t x) |
Prints x to a malloc-allocated string, a pointer to which is returned via strp. | |
| int | ppl_Generator_System_ascii_dump (ppl_const_Generator_System_t x, FILE *stream) |
Dumps an ascii representation of x on stream. | |
| int | ppl_Generator_System_ascii_load (ppl_Generator_System_t x, FILE *stream) |
Loads an ascii representation of x from stream. | |
Types and functions for generator systems.
The types and functions for generator systems provide an interface towards Generator_System.
|
Builds an empty system of generators and writes a handle to it at address pgs.
| pgs | Receives the newly allocated object handle; release it with the matching deletion function. |
|
Builds the singleton generator system containing only a copy of generator g; writes a handle for the newly created system at address pgs.
| pgs | Receives the newly allocated object handle; release it with the matching deletion function. |
| g | The borrowed handle to the input object. |
|
Builds a generator system that is a copy of gs; writes a handle for the newly created system at address pgs.
| pgs | Receives the newly allocated object handle; release it with the matching deletion function. |
| gs | The borrowed handle to the input object. |
|
Assigns a copy of the generator system src to dst.
| dst | The destination object handle. |
| src | The source object handle. |
|
Invalidates the handle gs: this makes sure the corresponding resources will eventually be released.
| gs | The borrowed handle to the input object. |
|
Writes to m the dimension of the vector space enclosing gs.
| gs | The borrowed handle to the input object. |
| m | The number of space dimensions to add. |
|
Returns a positive integer if gs contains no generators; returns 0 otherwise.
| gs | The borrowed handle to the input object. |
gs contains no generators; returns 0 otherwise.
|
Assigns to git a const iterator "pointing" to the beginning of the generator system gs.
The iterator object must already have been constructed. This function borrows from the system without extending its lifetime and does not invalidate other iterators; see System Iterators and Elements.
| gs | The borrowed handle to the input object. |
| git | The iterator handle selecting the current element. |
|
Assigns to git a const iterator "pointing" past the end of the generator system gs.
The iterator object must already have been constructed. This function borrows from the system without extending its lifetime and does not invalidate other iterators; see System Iterators and Elements.
| gs | The borrowed handle to the input object. |
| git | The iterator handle selecting the current element. |
|
Returns a positive integer if gs is well formed, i.e., if it satisfies all its implementation invariants; returns 0 and perhaps makes some noise if gs is broken. Useful for debugging purposes.
| gs | The borrowed handle to the input object. |
gs is well formed, i.e., if it satisfies all its implementation invariants; returns 0 and perhaps makes some noise if gs is broken. Useful for debugging purposes.
|
Removes all the generators from the generator system gs and sets its space dimension to 0.
| gs | The generator system operand. |
|
Inserts a copy of the generator g into gs; the space dimension is increased, if necessary.
| gs | The generator system operand. |
| g | The borrowed handle to the input object. |
|
Prints x to stdout.
| x | The borrowed handle to the input object. |
|
Prints x to the given output stream.
| stream | The file stream to which output is written. |
| x | The borrowed handle to the input object. |
|
Prints x to a malloc-allocated string, a pointer to which is returned via strp.
| strp | Receives the newly malloc-allocated string; the caller must release it with free(). |
| x | The borrowed handle to the input object. |
x to a malloc-allocated string, a pointer to which is returned via strp.
|
Dumps an ascii representation of x on stream.
| x | The borrowed handle to the input object. |
| stream | The file stream to which output is written. |
|
Loads an ascii representation of x from stream.
| x | The generator system operand. |
| stream | The file stream from which input is read. |