PPL C Language Interface 2.0
ppl_Grid_Generator_System_tag Interface Reference

Types and functions for grid generator systems. More...

#include <ppl_c_header.h>

(Note that these are not member symbols.)

int ppl_new_Grid_Generator_System (ppl_Grid_Generator_System_t *pgs)
 Builds an empty system of grid generators and writes a handle to it at address pgs.
int ppl_new_Grid_Generator_System_from_Grid_Generator (ppl_Grid_Generator_System_t *pgs, ppl_const_Grid_Generator_t g)
 Builds the singleton grid generator system containing only a copy of generator g; writes a handle for the newly created system at address pgs.
int ppl_new_Grid_Generator_System_from_Grid_Generator_System (ppl_Grid_Generator_System_t *pgs, ppl_const_Grid_Generator_System_t gs)
 Builds a grid generator system that is a copy of gs; writes a handle for the newly created system at address pgs.
int ppl_assign_Grid_Generator_System_from_Grid_Generator_System (ppl_Grid_Generator_System_t dst, ppl_const_Grid_Generator_System_t src)
 Assigns a copy of the grid generator system src to dst.
int ppl_delete_Grid_Generator_System (ppl_const_Grid_Generator_System_t gs)
 Invalidates the handle gs: this makes sure the corresponding resources will eventually be released.
int ppl_Grid_Generator_System_space_dimension (ppl_const_Grid_Generator_System_t gs, ppl_dimension_type *m)
 Writes to m the dimension of the vector space enclosing gs.
int ppl_Grid_Generator_System_empty (ppl_const_Grid_Generator_System_t gs)
 Returns a positive integer if gs contains no generator; returns 0 otherwise.
int ppl_Grid_Generator_System_begin (ppl_const_Grid_Generator_System_t gs, ppl_Grid_Generator_System_const_iterator_t git)
 Assigns to git a const iterator "pointing" to the beginning of the grid generator system gs.
int ppl_Grid_Generator_System_end (ppl_const_Grid_Generator_System_t gs, ppl_Grid_Generator_System_const_iterator_t git)
 Assigns to git a const iterator "pointing" past the end of the grid generator system gs.
int ppl_Grid_Generator_System_OK (ppl_const_Grid_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.
int ppl_Grid_Generator_System_clear (ppl_Grid_Generator_System_t gs)
 Removes all the generators from the grid generator system gs and sets its space dimension to 0.
int ppl_Grid_Generator_System_insert_Grid_Generator (ppl_Grid_Generator_System_t gs, ppl_const_Grid_Generator_t g)
 Inserts a copy of the grid generator g into gs; the space dimension is increased, if necessary.
int ppl_io_print_Grid_Generator_System (ppl_const_Grid_Generator_System_t x)
 Prints x to stdout.
int ppl_io_fprint_Grid_Generator_System (FILE *stream, ppl_const_Grid_Generator_System_t x)
 Prints x to the given output stream.
int ppl_io_asprint_Grid_Generator_System (char **strp, ppl_const_Grid_Generator_System_t x)
 Prints x to a malloc-allocated string, a pointer to which is returned via strp.
int ppl_Grid_Generator_System_ascii_dump (ppl_const_Grid_Generator_System_t x, FILE *stream)
 Dumps an ascii representation of x on stream.
int ppl_Grid_Generator_System_ascii_load (ppl_Grid_Generator_System_t x, FILE *stream)
 Loads an ascii representation of x from stream.

Detailed Description

Types and functions for grid generator systems.

The types and functions for grid generator systems provide an interface towards Grid_Generator_System.

◆ ppl_new_Grid_Generator_System()

int ppl_new_Grid_Generator_System ( ppl_Grid_Generator_System_t * pgs)
related

Builds an empty system of grid generators and writes a handle to it at address pgs.

Parameters
pgsReceives the newly allocated object handle; release it with the matching deletion function.
Returns
Zero on success; a negative error code on failure.

◆ ppl_new_Grid_Generator_System_from_Grid_Generator()

int ppl_new_Grid_Generator_System_from_Grid_Generator ( ppl_Grid_Generator_System_t * pgs,
ppl_const_Grid_Generator_t g )
related

Builds the singleton grid generator system containing only a copy of generator g; writes a handle for the newly created system at address pgs.

Parameters
pgsReceives the newly allocated object handle; release it with the matching deletion function.
gThe borrowed handle to the input object.
Returns
Zero on success; a negative error code on failure.

◆ ppl_new_Grid_Generator_System_from_Grid_Generator_System()

int ppl_new_Grid_Generator_System_from_Grid_Generator_System ( ppl_Grid_Generator_System_t * pgs,
ppl_const_Grid_Generator_System_t gs )
related

Builds a grid generator system that is a copy of gs; writes a handle for the newly created system at address pgs.

Parameters
pgsReceives the newly allocated object handle; release it with the matching deletion function.
gsThe borrowed handle to the input object.
Returns
Zero on success; a negative error code on failure.

◆ ppl_assign_Grid_Generator_System_from_Grid_Generator_System()

int ppl_assign_Grid_Generator_System_from_Grid_Generator_System ( ppl_Grid_Generator_System_t dst,
ppl_const_Grid_Generator_System_t src )
related

Assigns a copy of the grid generator system src to dst.

Parameters
dstThe destination object handle.
srcThe source object handle.
Returns
Zero on success; a negative error code on failure.

◆ ppl_delete_Grid_Generator_System()

int ppl_delete_Grid_Generator_System ( ppl_const_Grid_Generator_System_t gs)
related

Invalidates the handle gs: this makes sure the corresponding resources will eventually be released.

Parameters
gsThe borrowed handle to the input object.
Returns
Zero on success; a negative error code on failure.

◆ ppl_Grid_Generator_System_space_dimension()

int ppl_Grid_Generator_System_space_dimension ( ppl_const_Grid_Generator_System_t gs,
ppl_dimension_type * m )
related

Writes to m the dimension of the vector space enclosing gs.

Parameters
gsThe borrowed handle to the input object.
mThe number of space dimensions to add.
Returns
Zero on success; a negative error code on failure.

◆ ppl_Grid_Generator_System_empty()

int ppl_Grid_Generator_System_empty ( ppl_const_Grid_Generator_System_t gs)
related

Returns a positive integer if gs contains no generator; returns 0 otherwise.

Parameters
gsThe borrowed handle to the input object.
Returns
A positive integer if gs contains no generator; returns 0 otherwise.

◆ ppl_Grid_Generator_System_begin()

int ppl_Grid_Generator_System_begin ( ppl_const_Grid_Generator_System_t gs,
ppl_Grid_Generator_System_const_iterator_t git )
related

Assigns to git a const iterator "pointing" to the beginning of the grid 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.

Parameters
gsThe borrowed handle to the input object.
gitThe iterator handle selecting the current element.
Returns
Zero on success; a negative error code on failure.

◆ ppl_Grid_Generator_System_end()

int ppl_Grid_Generator_System_end ( ppl_const_Grid_Generator_System_t gs,
ppl_Grid_Generator_System_const_iterator_t git )
related

Assigns to git a const iterator "pointing" past the end of the grid 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.

Parameters
gsThe borrowed handle to the input object.
gitThe iterator handle selecting the current element.
Returns
Zero on success; a negative error code on failure.

◆ ppl_Grid_Generator_System_OK()

int ppl_Grid_Generator_System_OK ( ppl_const_Grid_Generator_System_t gs)
related

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.

Parameters
gsThe borrowed handle to the input object.
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.

◆ ppl_Grid_Generator_System_clear()

int ppl_Grid_Generator_System_clear ( ppl_Grid_Generator_System_t gs)
related

Removes all the generators from the grid generator system gs and sets its space dimension to 0.

Parameters
gsThe grid-generator system operand.
Returns
Zero on success; a negative error code on failure.

◆ ppl_Grid_Generator_System_insert_Grid_Generator()

int ppl_Grid_Generator_System_insert_Grid_Generator ( ppl_Grid_Generator_System_t gs,
ppl_const_Grid_Generator_t g )
related

Inserts a copy of the grid generator g into gs; the space dimension is increased, if necessary.

Parameters
gsThe grid-generator system operand.
gThe borrowed handle to the input object.
Returns
Zero on success; a negative error code on failure.

◆ ppl_io_print_Grid_Generator_System()

int ppl_io_print_Grid_Generator_System ( ppl_const_Grid_Generator_System_t x)
related

Prints x to stdout.

Parameters
xThe borrowed handle to the input object.
Returns
Zero on success; a negative error code on failure.

◆ ppl_io_fprint_Grid_Generator_System()

int ppl_io_fprint_Grid_Generator_System ( FILE * stream,
ppl_const_Grid_Generator_System_t x )
related

Prints x to the given output stream.

Parameters
streamThe file stream to which output is written.
xThe borrowed handle to the input object.
Returns
Zero on success; a negative error code on failure.

◆ ppl_io_asprint_Grid_Generator_System()

int ppl_io_asprint_Grid_Generator_System ( char ** strp,
ppl_const_Grid_Generator_System_t x )
related

Prints x to a malloc-allocated string, a pointer to which is returned via strp.

Parameters
strpReceives the newly malloc-allocated string; the caller must release it with free().
xThe borrowed handle to the input object.
Returns
Prints x to a malloc-allocated string, a pointer to which is returned via strp.

◆ ppl_Grid_Generator_System_ascii_dump()

int ppl_Grid_Generator_System_ascii_dump ( ppl_const_Grid_Generator_System_t x,
FILE * stream )
related

Dumps an ascii representation of x on stream.

Parameters
xThe borrowed handle to the input object.
streamThe file stream to which output is written.
Returns
Zero on success; a negative error code on failure.

◆ ppl_Grid_Generator_System_ascii_load()

int ppl_Grid_Generator_System_ascii_load ( ppl_Grid_Generator_System_t x,
FILE * stream )
related

Loads an ascii representation of x from stream.

Parameters
xThe grid-generator system operand.
streamThe file stream from which input is read.
Returns
Zero on success; a negative error code on failure.

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