PPL C Language Interface 2.0
ppl_Generator_System_const_iterator_tag Interface Reference

Types and functions for iterating on generator systems. More...

#include <ppl_c_header.h>

(Note that these are not member symbols.)

int ppl_new_Generator_System_const_iterator (ppl_Generator_System_const_iterator_t *pgit)
 Builds a new const iterator and writes a handle to it at address pgit.
int ppl_new_Generator_System_const_iterator_from_Generator_System_const_iterator (ppl_Generator_System_const_iterator_t *pgit, ppl_const_Generator_System_const_iterator_t git)
 Builds a const iterator that is a copy of git; writes a handle for the newly created const iterator at address pgit.
int ppl_assign_Generator_System_const_iterator_from_Generator_System_const_iterator (ppl_Generator_System_const_iterator_t dst, ppl_const_Generator_System_const_iterator_t src)
 Assigns a copy of the const iterator src to dst.
int ppl_delete_Generator_System_const_iterator (ppl_const_Generator_System_const_iterator_t git)
 Invalidates the handle git: this makes sure the corresponding resources will eventually be released.
int ppl_Generator_System_const_iterator_dereference (ppl_const_Generator_System_const_iterator_t git, ppl_const_Generator_t *pg)
 Dereference git writing a const handle to the resulting generator at address pg.
int ppl_Generator_System_const_iterator_increment (ppl_Generator_System_const_iterator_t git)
 Increment git so that it "points" to the next generator.
int ppl_Generator_System_const_iterator_equal_test (ppl_const_Generator_System_const_iterator_t x, ppl_const_Generator_System_const_iterator_t y)
 Returns a positive integer if the iterators corresponding to x and y are equal; returns 0 if they are different.

Detailed Description

Types and functions for iterating on generator systems.

The types and functions for generator systems iterators provide read-only access to the elements of a generator system by interfacing Generator_System::const_iterator.

◆ ppl_new_Generator_System_const_iterator()

int ppl_new_Generator_System_const_iterator ( ppl_Generator_System_const_iterator_t * pgit)
related

Builds a new const iterator and writes a handle to it at address pgit.

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

◆ ppl_new_Generator_System_const_iterator_from_Generator_System_const_iterator()

int ppl_new_Generator_System_const_iterator_from_Generator_System_const_iterator ( ppl_Generator_System_const_iterator_t * pgit,
ppl_const_Generator_System_const_iterator_t git )
related

Builds a const iterator that is a copy of git; writes a handle for the newly created const iterator at address pgit.

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

◆ ppl_assign_Generator_System_const_iterator_from_Generator_System_const_iterator()

int ppl_assign_Generator_System_const_iterator_from_Generator_System_const_iterator ( ppl_Generator_System_const_iterator_t dst,
ppl_const_Generator_System_const_iterator_t src )
related

Assigns a copy of the const iterator src to dst.

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

◆ ppl_delete_Generator_System_const_iterator()

int ppl_delete_Generator_System_const_iterator ( ppl_const_Generator_System_const_iterator_t git)
related

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

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

◆ ppl_Generator_System_const_iterator_dereference()

int ppl_Generator_System_const_iterator_dereference ( ppl_const_Generator_System_const_iterator_t git,
ppl_const_Generator_t * pg )
related

Dereference git writing a const handle to the resulting generator at address pg.

The iterator must refer to an element, not the end of the system. The result is borrowed from the system, is non-null on success and must not be modified or deleted. Its lifetime follows the system and its owners, not the iterator object; see System Iterators and Elements. On failure, the output handle is unchanged.

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

◆ ppl_Generator_System_const_iterator_increment()

int ppl_Generator_System_const_iterator_increment ( ppl_Generator_System_const_iterator_t git)
related

Increment git so that it "points" to the next generator.

Parameters
gitThe iterator handle selecting the current element.
Returns
Zero on success; a negative error code on failure.

◆ ppl_Generator_System_const_iterator_equal_test()

int ppl_Generator_System_const_iterator_equal_test ( ppl_const_Generator_System_const_iterator_t x,
ppl_const_Generator_System_const_iterator_t y )
related

Returns a positive integer if the iterators corresponding to x and y are equal; returns 0 if they are different.

Parameters
xThe borrowed handle to the input object.
yThe borrowed handle to the input object.
Returns
A positive integer if the iterators corresponding to x and y are equal; returns 0 if they are different.

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