|
PPL C Language Interface 2.0
|
Types and functions for iterating on 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_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. | |
Dereferencing, Incrementing and Equality Testing | |
| 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. | |
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.
|
Builds a new const iterator and writes a handle to it at address pgit.
| pgit | Receives the newly allocated object handle; release it with the matching deletion function. |
|
Builds a const iterator that is a copy of git; writes a handle for the newly created const iterator at address pgit.
| pgit | Receives the newly allocated object handle; release it with the matching deletion function. |
| git | The borrowed handle to the input object. |
|
Assigns a copy of the const iterator src to dst.
| dst | The destination object handle. |
| src | The source object handle. |
|
Invalidates the handle git: this makes sure the corresponding resources will eventually be released.
| git | The borrowed handle to the input object. |
|
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.
| git | The borrowed handle to the input object. |
| pg | The borrowed handle to the input object. |
|
Increment git so that it "points" to the next generator.
| git | The iterator handle selecting the current element. |
|
Returns a positive integer if the iterators corresponding to x and y are equal; returns 0 if they are different.
| x | The borrowed handle to the input object. |
| y | The borrowed handle to the input object. |
x and y are equal; returns 0 if they are different.