Struct clingo::TheoryAtoms [] [src]

pub struct TheoryAtoms(_);

Container that stores theory atoms, elements, and terms of a program.

See: Control::theory_atoms()

Methods

impl TheoryAtoms
[src]

[src]

Get the total number of theory atoms.

Important traits for TheoryAtomsIterator<'a>
[src]

Returns an iterator over the theory atoms.

[src]

Get the type of the given theory term.

Arguments

  • term - id of the term

[src]

Get the number of the given numeric theory term.

Pre-condition

The term must be of type TermType::Number.

Arguments

  • term - id of the term

[src]

Get the name of the given constant or function theory term.

Pre-condition

The term must be of type TermType::Function or TermType::Symbol.

Arguments

  • term id of the term

[src]

Get the arguments of the given function theory term.

Pre-condition

The term must be of type TermType::Function.

Arguments

  • term - id of the term

[src]

Get the string representation of the given theory term.

Arguments

  • term - id of the term

Errors

[src]

Get the tuple (array of theory terms) of the given theory element.

Arguments

  • element - id of the element

[src]

Get the condition (array of aspif literals) of the given theory element.

Arguments

  • element - id of the element

[src]

Get the id of the condition of the given theory element.

Note: This id can be mapped to a solver literal using PropagateInit::solver_literal(). This id is not (necessarily) an aspif literal; to get aspif literals use TheoryAtoms::element_condition().

Arguments

  • element - id of the element

[src]

Get the string representation of the given theory element.

Arguments

  • element - id of the element

Errors

[src]

Get the theory term associated with the theory atom.

Arguments

  • atom id of the atom

[src]

Get the theory elements associated with the theory atom.

Arguments

  • atom - id of the atom

[src]

Whether the theory atom has a guard.

Arguments

  • atom id of the atom

[src]

Get the guard consisting of a theory operator and a theory term of the given theory atom.

Arguments

  • atom - id of the atom

[src]

Get the aspif literal associated with the given theory atom.

Arguments

  • atom id of the atom

[src]

Get the string representation of the given theory atom.

Arguments

  • atom - id of the element

Errors

Trait Implementations

impl Debug for TheoryAtoms
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for TheoryAtoms
[src]

impl Clone for TheoryAtoms
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for TheoryAtoms

impl Sync for TheoryAtoms