category
countersï
Named integer counters. Counter names can be any nonvar term.
Availability:
logtalk_load(library(loader))Author: Paulo Moura
Version: 1:0:1
Date: 2022-02-11
Compilation flags:
staticDependencies:
(none)
Remarks:
(none)
Inherited public predicates:
(none)
Public predicatesï
counter/2ï
True if Counter is a counter with value Value.
Compilation flags:
staticTemplate:
counter(Counter,Value)Mode and number of proofs:
counter(?nonvar,?integer) - zero_or_moreincrement_counter/1ï
Increments the named counter.
Compilation flags:
staticTemplate:
increment_counter(Counter)Mode and number of proofs:
increment_counter(+nonvar) - onedecrement_counter/1ï
Decrements the named counter.
Compilation flags:
staticTemplate:
decrement_counter(Counter)Mode and number of proofs:
decrement_counter(+nonvar) - onereset_counter/1ï
Resets the named counter to zero. Creates the counter if it does not exist.
Compilation flags:
staticTemplate:
reset_counter(Counter)Mode and number of proofs:
reset_counter(+nonvar) - onereset_counters/0ï
Resets all existing named counters to zero.
Compilation flags:
staticMode and number of proofs:
reset_counters - oneProtected predicatesï
(none)
Private predicatesï
counter_/2ï
Table of named counters.
Compilation flags:
dynamicTemplate:
counter_(Counter,Value)Mode and number of proofs:
counter_(?nonvar,?integer) - zero_or_moreOperatorsï
(none)