PPL C Language Interface 2.0
ppl_PIP_Solution_Node_tag Interface Reference

Types and functions for PIP solution nodes. More...

#include <ppl_c_header.h>

(Note that these are not member symbols.)

int ppl_PIP_Solution_Node_OK (ppl_const_PIP_Solution_Node_t pip_sol)
 Returns a positive integer if pip_sol is well formed, i.e., if it satisfies all its implementation invariants; returns 0 and perhaps makes some noise if pip_sol is broken. Useful for debugging purposes.
int ppl_PIP_Solution_Node_get_parametric_values (ppl_const_PIP_Solution_Node_t pip_sol, ppl_dimension_type var, ppl_const_Linear_Expression_t *le)
 Writes to le a const pointer to the parametric expression of the values of variable var in solution node pip_sol.
int ppl_io_print_PIP_Solution_Node (ppl_const_PIP_Solution_Node_t x)
 Prints x to stdout.
int ppl_io_fprint_PIP_Solution_Node (FILE *stream, ppl_const_PIP_Solution_Node_t x)
 Prints x to the given output stream.
int ppl_io_asprint_PIP_Solution_Node (char **strp, ppl_const_PIP_Solution_Node_t x)
 Prints x to a malloc-allocated string, a pointer to which is returned via strp.
int ppl_PIP_Solution_Node_ascii_dump (ppl_const_PIP_Solution_Node_t x, FILE *stream)
 Dumps an ascii representation of x on stream.
int ppl_PIP_Solution_Node_ascii_load (ppl_PIP_Solution_Node_t x, FILE *stream)
 Loads an ascii representation of x from stream.

Detailed Description

Types and functions for PIP solution nodes.

The types and functions for solution nodes provide an interface towards PIP_Solution_Node.

◆ ppl_PIP_Solution_Node_OK()

int ppl_PIP_Solution_Node_OK ( ppl_const_PIP_Solution_Node_t pip_sol)
related

Returns a positive integer if pip_sol is well formed, i.e., if it satisfies all its implementation invariants; returns 0 and perhaps makes some noise if pip_sol is broken. Useful for debugging purposes.

Parameters
pip_solThe borrowed handle to the input object.
Returns
A positive integer if pip_sol is well formed, i.e., if it satisfies all its implementation invariants; returns 0 and perhaps makes some noise if pip_sol is broken. Useful for debugging purposes.

◆ ppl_PIP_Solution_Node_get_parametric_values()

int ppl_PIP_Solution_Node_get_parametric_values ( ppl_const_PIP_Solution_Node_t pip_sol,
ppl_dimension_type var,
ppl_const_Linear_Expression_t * le )
related

Writes to le a const pointer to the parametric expression of the values of variable var in solution node pip_sol.

The linear expression assigned to le will only refer to (problem or artificial) parameters.

Parameters
pip_solThe solution tree node.
varThe variable which is queried about.
leThe returned expression for variable var.
Returns
PPL_ERROR_INVALID_ARGUMENT Returned if var is dimension-incompatible with *this or if var is a problem parameter.

The non-null result is borrowed from pip_sol and ultimately from its PIP problem, and must not be modified or deleted. Other read-only tree queries, including parametric-value queries for other variables, do not invalidate it; see Borrowed PIP Problem Data and Solution Trees. On failure, *le is unchanged.

◆ ppl_io_print_PIP_Solution_Node()

int ppl_io_print_PIP_Solution_Node ( ppl_const_PIP_Solution_Node_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_PIP_Solution_Node()

int ppl_io_fprint_PIP_Solution_Node ( FILE * stream,
ppl_const_PIP_Solution_Node_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_PIP_Solution_Node()

int ppl_io_asprint_PIP_Solution_Node ( char ** strp,
ppl_const_PIP_Solution_Node_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_PIP_Solution_Node_ascii_dump()

int ppl_PIP_Solution_Node_ascii_dump ( ppl_const_PIP_Solution_Node_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_PIP_Solution_Node_ascii_load()

int ppl_PIP_Solution_Node_ascii_load ( ppl_PIP_Solution_Node_t x,
FILE * stream )
related

Loads an ascii representation of x from stream.

Parameters
xThe solution node 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: