Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The channel aliased as CURRENT in this store, or null if none is set.

Link copied to clipboard

Every alias, other than CURRENT itself, under which current is also reachable.

Link copied to clipboard
Link copied to clipboard
abstract val keys: Set<String>
Link copied to clipboard
expect abstract val size: Int
Link copied to clipboard
abstract val stdErr: OutputChannel<String>

The channel aliased STDERR, i.e. this store's standard error.

Link copied to clipboard
abstract val stdOut: OutputChannel<String>

The channel aliased STDOUT, i.e. this store's standard output.

Link copied to clipboard
Link copied to clipboard

The channel it.unibo.tuprolog.solve.exception.Warnings are reported to.

Functions

Link copied to clipboard
abstract fun aliasesOf(channel: OutputChannel<String>): Sequence<String>

Returns every alias under which channel is reachable in this store, excluding CURRENT.

Link copied to clipboard
open fun close(channel: OutputChannel<String>): OutputStore

Channel.closes channel and returns a copy of this store without any alias pointing to it.

Link copied to clipboard
abstract fun containsKey(key: String): Boolean
Link copied to clipboard
abstract fun containsValue(value: OutputChannel<String>): Boolean
Link copied to clipboard
abstract fun findByTerm(streamTerm: Term): Sequence<OutputChannel<String>>

Returns every channel in this store whose Channel.streamTerm unifies with streamTerm.

Link copied to clipboard
abstract operator fun get(key: String): OutputChannel<String>?
Link copied to clipboard
expect abstract fun isEmpty(): Boolean
Link copied to clipboard
open operator fun minus(other: String): OutputStore

Returns a copy of this store without the entry aliased other (if any).

open operator fun minus(others: Iterable<String>): OutputStore
abstract operator fun minus(others: Sequence<String>): OutputStore

Returns a copy of this store without the entries aliased in others.

open fun minus(other: String, vararg others: String): OutputStore

Returns a copy of this store without the entries aliased other or in others.

Link copied to clipboard
open operator fun plus(other: Pair<String, OutputChannel<String>>): OutputStore

Returns a copy of this store with other added (overriding an existing entry with the same alias).

open operator fun plus(others: Iterable<Pair<String, OutputChannel<String>>>): OutputStore
abstract operator fun plus(others: Map<String, OutputChannel<String>>): OutputStore
open operator fun plus(others: Sequence<Pair<String, OutputChannel<String>>>): OutputStore

Returns a copy of this store with every entry of others added (overriding same-named existing ones).

open fun plus(first: Pair<String, OutputChannel<String>>, vararg others: Pair<String, OutputChannel<String>>): OutputStore

Returns a copy of this store with first and others added (overriding same-named existing entries).

Link copied to clipboard
abstract fun setCurrent(channel: OutputChannel<String>): OutputStore

Returns a copy of this store with CURRENT pointing to channel.

abstract fun setCurrent(alias: String): OutputStore

Returns a copy of this store with CURRENT pointing to the channel already aliased as alias.

Link copied to clipboard
abstract fun setStdErr(channel: OutputChannel<String>): OutputStore

Returns a copy of this store with stdErr (and the STDERR alias) replaced by channel.

Link copied to clipboard
abstract fun setStdOut(channel: OutputChannel<String>): OutputStore

Returns a copy of this store with stdOut (and the STDOUT alias) replaced by channel.

Link copied to clipboard
abstract fun setWarnings(channel: OutputChannel<Warning>): OutputStore

Returns a copy of this store with warnings replaced by channel.