PPL C Language Interface 2.0
ppl_Constraint_System_const_iterator_tag Interface Reference

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

#include <ppl_c_header.h>

(Note that these are not member symbols.)

int ppl_new_Constraint_System_const_iterator (ppl_Constraint_System_const_iterator_t *pcit)
 Builds a new const iterator and writes a handle to it at address pcit.
int ppl_new_Constraint_System_const_iterator_from_Constraint_System_const_iterator (ppl_Constraint_System_const_iterator_t *pcit, ppl_const_Constraint_System_const_iterator_t cit)
 Builds a const iterator that is a copy of cit; writes a handle for the newly created const iterator at address pcit.
int ppl_assign_Constraint_System_const_iterator_from_Constraint_System_const_iterator (ppl_Constraint_System_const_iterator_t dst, ppl_const_Constraint_System_const_iterator_t src)
 Assigns a copy of the const iterator src to dst.
int ppl_delete_Constraint_System_const_iterator (ppl_const_Constraint_System_const_iterator_t cit)
 Invalidates the handle cit: this makes sure the corresponding resources will eventually be released.
int ppl_Constraint_System_const_iterator_dereference (ppl_const_Constraint_System_const_iterator_t cit, ppl_const_Constraint_t *pc)
 Dereference cit writing a const handle to the resulting constraint at address pc.
int ppl_Constraint_System_const_iterator_increment (ppl_Constraint_System_const_iterator_t cit)
 Increment cit so that it "points" to the next constraint.
int ppl_Constraint_System_const_iterator_equal_test (ppl_const_Constraint_System_const_iterator_t x, ppl_const_Constraint_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 constraint systems.

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

◆ ppl_new_Constraint_System_const_iterator()

int ppl_new_Constraint_System_const_iterator ( ppl_Constraint_System_const_iterator_t * pcit)
related

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

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

◆ ppl_new_Constraint_System_const_iterator_from_Constraint_System_const_iterator()

int ppl_new_Constraint_System_const_iterator_from_Constraint_System_const_iterator ( ppl_Constraint_System_const_iterator_t * pcit,
ppl_const_Constraint_System_const_iterator_t cit )
related

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

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

◆ ppl_assign_Constraint_System_const_iterator_from_Constraint_System_const_iterator()

int ppl_assign_Constraint_System_const_iterator_from_Constraint_System_const_iterator ( ppl_Constraint_System_const_iterator_t dst,
ppl_const_Constraint_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_Constraint_System_const_iterator()

int ppl_delete_Constraint_System_const_iterator ( ppl_const_Constraint_System_const_iterator_t cit)
related

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

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

◆ ppl_Constraint_System_const_iterator_dereference()

int ppl_Constraint_System_const_iterator_dereference ( ppl_const_Constraint_System_const_iterator_t cit,
ppl_const_Constraint_t * pc )
related

Dereference cit writing a const handle to the resulting constraint at address pc.

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
citThe borrowed handle to the input object.
pcThe borrowed handle to the input object.
Returns
Zero on success; a negative error code on failure.

◆ ppl_Constraint_System_const_iterator_increment()

int ppl_Constraint_System_const_iterator_increment ( ppl_Constraint_System_const_iterator_t cit)
related

Increment cit so that it "points" to the next constraint.

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

◆ ppl_Constraint_System_const_iterator_equal_test()

int ppl_Constraint_System_const_iterator_equal_test ( ppl_const_Constraint_System_const_iterator_t x,
ppl_const_Constraint_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: