Struct boolean_expression::CubeList [] [src]

pub struct CubeList(_);

A CubeList is a sum (OR'd list) of cubes. It represents a Boolean expression in sum-of-products form, by construction.

The CubeList abstraction supports only indexed anonymous variables (variable 0, 1, ...), and does not (yet) have a wrapper supporting an arbitrary terminal type T. This may be implemented in the future.

The CubeList abstraction is used internally to convert from a BDD to a quasi-minimized Boolean expression.

Methods

impl CubeList
[src]

Construct a new, empty, cube list (equivalent to a constant false).

Construct a cube list from a list of Cube structs.

Return an iterator over all cubes.

Merge this cube list with another, canceling or merging cubes where possible. The resulting cube list is not guaranteed to be minimal (that is the set-cover problem, which is NP-Complete), but is reduced somewhat by a very simple reduction/merging algorithm.

Trait Implementations

impl Clone for CubeList
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CubeList
[src]

Formats the value using the given formatter.

impl PartialEq for CubeList
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.