object
counterï
Counter implemented with asserta/retract.
Availability:
logtalk_load(verdi_neruda(loader))Author: Victor Lagerkvist
Version: 1:0:1
Date: 2022-10-08
Compilation flags:
static, context_switching_callsDependencies:
(none)
Remarks:
(none)
Inherited public predicates:
(none)
Public predicatesï
increment/0ï
Increment the counter by 1.
Compilation flags:
staticMode and number of proofs:
increment - oneincrease/1ï
Increments the counter by the specified amount.
Compilation flags:
staticTemplate:
increase(I)Mode and number of proofs:
increase(+number) - oneset/1ï
Sets the counter to the specified amount.
Compilation flags:
staticTemplate:
set(N)Mode and number of proofs:
set(+number) - onevalue/1ï
Gets the current value of the counter.
Compilation flags:
staticTemplate:
value(N)Mode and number of proofs:
value(?number) - onereset/0ï
Resets the counter to zero.
Compilation flags:
staticMode and number of proofs:
reset - oneProtected predicatesï
(none)
Private predicatesï
c/1ï
Stores the current value of the counter.
Compilation flags:
dynamicTemplate:
c(N)Mode and number of proofs:
c(?number) - zero_or_oneOperatorsï
(none)