|
PPL C Language Interface 2.0
|
Types and functions for PIP decision nodes. More...
#include <ppl_c_header.h>
Related Symbols | |
(Note that these are not member symbols.) | |
Querying/Setting Control Parameters | |
| int | ppl_PIP_Decision_Node_OK (ppl_const_PIP_Decision_Node_t pip_dec) |
Returns a positive integer if pip_dec is well formed, i.e., if it satisfies all its implementation invariants; returns 0 and perhaps makes some noise if pip_dec is broken. Useful for debugging purposes. | |
| int | ppl_PIP_Decision_Node_get_child_node (ppl_const_PIP_Decision_Node_t pip_dec, int b, ppl_const_PIP_Tree_Node_t *pip_tree) |
Writes to pip_tree a const pointer to either the true branch (if b is not zero) or the false branch (if b is zero) of pip_dec. | |
Input/Output Functions | |
| int | ppl_io_print_PIP_Decision_Node (ppl_const_PIP_Decision_Node_t x) |
Prints x to stdout. | |
| int | ppl_io_fprint_PIP_Decision_Node (FILE *stream, ppl_const_PIP_Decision_Node_t x) |
Prints x to the given output stream. | |
| int | ppl_io_asprint_PIP_Decision_Node (char **strp, ppl_const_PIP_Decision_Node_t x) |
Prints x to a malloc-allocated string, a pointer to which is returned via strp. | |
| int | ppl_PIP_Decision_Node_ascii_dump (ppl_const_PIP_Decision_Node_t x, FILE *stream) |
Dumps an ascii representation of x on stream. | |
| int | ppl_PIP_Decision_Node_ascii_load (ppl_PIP_Decision_Node_t x, FILE *stream) |
Loads an ascii representation of x from stream. | |
Types and functions for PIP decision nodes.
The types and functions for decision nodes provide an interface towards PIP_Decision_Node.
|
Returns a positive integer if pip_dec is well formed, i.e., if it satisfies all its implementation invariants; returns 0 and perhaps makes some noise if pip_dec is broken. Useful for debugging purposes.
| pip_dec | The borrowed handle to the input object. |
pip_dec is well formed, i.e., if it satisfies all its implementation invariants; returns 0 and perhaps makes some noise if pip_dec is broken. Useful for debugging purposes.
|
Writes to pip_tree a const pointer to either the true branch (if b is not zero) or the false branch (if b is zero) of pip_dec.
Writes a null handle if the branch is absent. A non-null result is borrowed from the same PIP problem as pip_dec, and must not be modified or deleted. This access does not invalidate other tree views; see Borrowed PIP Problem Data and Solution Trees. On failure, *pip_tree is unchanged.
| pip_dec | The borrowed handle to the input object. |
| b | Nonzero to select the true branch; zero to select the false branch. |
| pip_tree | 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 decision node operand. |
| stream | The file stream from which input is read. |